Skip to content

Commit 761612b

Browse files
chalkWoodmontogeek
authored andcommitted
docs(guides): CleanWebpackPlugin | Requires a config object (#2884)
new CleanWebpackPlugin() | requires a config object than an array
1 parent a0d9600 commit 761612b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/guides/development.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ __webpack.config.js__
3636
print: './src/print.js'
3737
},
3838
plugins: [
39-
new CleanWebpackPlugin(['dist']),
39+
new CleanWebpackPlugin(),
4040
new HtmlWebpackPlugin({
4141
title: 'Development'
4242
})
@@ -73,7 +73,7 @@ __webpack.config.js__
7373
},
7474
+ devtool: 'inline-source-map',
7575
plugins: [
76-
new CleanWebpackPlugin(['dist']),
76+
new CleanWebpackPlugin(),
7777
new HtmlWebpackPlugin({
7878
title: 'Development'
7979
})
@@ -214,7 +214,7 @@ __webpack.config.js__
214214
+ contentBase: './dist'
215215
+ },
216216
plugins: [
217-
new CleanWebpackPlugin(['dist']),
217+
new CleanWebpackPlugin(),
218218
new HtmlWebpackPlugin({
219219
title: 'Development'
220220
})
@@ -299,7 +299,7 @@ __webpack.config.js__
299299
contentBase: './dist'
300300
},
301301
plugins: [
302-
new CleanWebpackPlugin(['dist']),
302+
new CleanWebpackPlugin(),
303303
new HtmlWebpackPlugin({
304304
title: 'Output Management'
305305
})

0 commit comments

Comments
 (0)