Skip to content

Commit 7ab8f8a

Browse files
committed
Update webpack config (correct plugins order)
1 parent bf54dd6 commit 7ab8f8a

File tree

3 files changed

+27
-26
lines changed

3 files changed

+27
-26
lines changed

package-lock.json

Lines changed: 22 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@
5454
"homepage": "https://github.com/coderitual/react-ui-interactions#readme",
5555
"author": "coderitual",
5656
"license": "MIT"
57-
}
57+
}

webpack.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ module.exports = {
1717
]
1818
},
1919
plugins: [
20-
new ErrorOverlayPlugin(),
2120
new CleanWebpackPlugin(['dist']),
22-
new HtmlWebPackPlugin({
23-
template: './public/index.html'
24-
}),
21+
new ErrorOverlayPlugin(),
2522
new WorkboxPlugin.GenerateSW({
2623
clientsClaim: true,
2724
skipWaiting: true
25+
}),
26+
new HtmlWebPackPlugin({
27+
template: './public/index.html'
2828
})
2929
],
3030
devtool: 'cheap-module-source-map',

0 commit comments

Comments
 (0)