Skip to content

Commit 8fafb17

Browse files
authored
doc: fix README.md
1 parent ff835a7 commit 8fafb17

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ module.exports = {
100100
optimization: {
101101
minimizer: [
102102
new CssnanoPlugin({
103-
cssnanoOptions: ['default', {
104-
discardComments: { removeAll: true }
105-
}]
103+
cssnanoOptions: {
104+
preset: ['default', {
105+
discardComments: { removeAll: true }
106+
}]
107+
}
106108
})
107109
]
108110
}
@@ -150,8 +152,10 @@ module.exports = {
150152
optimization: {
151153
minimizer: [
152154
new CssnanoPlugin({
153-
cssProcessorPluginOptions: {
154-
preset: ['default', { discardComments: { removeAll: true } }]
155+
cssnanoOptions: {
156+
preset: ['default', {
157+
discardComments: { removeAll: true }
158+
}]
155159
}
156160
})
157161
]
@@ -161,4 +165,4 @@ module.exports = {
161165

162166
## License
163167

164-
[MIT](./LICENSE)
168+
[MIT](./LICENSE)

0 commit comments

Comments
 (0)