We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ab8f8a commit a1a4ae4Copy full SHA for a1a4ae4
webpack.config.js
@@ -19,17 +19,10 @@ module.exports = {
19
plugins: [
20
new CleanWebpackPlugin(['dist']),
21
new ErrorOverlayPlugin(),
22
- new WorkboxPlugin.GenerateSW({
23
- clientsClaim: true,
24
- skipWaiting: true
25
- }),
26
- new HtmlWebPackPlugin({
27
- template: './public/index.html'
28
- })
+ new WorkboxPlugin.GenerateSW({ clientsClaim: true, skipWaiting: true }),
+ new HtmlWebPackPlugin({ template: './public/index.html' })
29
],
30
devtool: 'cheap-module-source-map',
31
- output: {
32
- filename: '[name].[hash].js',
33
- path: path.resolve(__dirname, 'dist')
34
- }
+ devServer: { historyApiFallback: true },
+ output: { filename: '[name].[hash].js', path: path.resolve(__dirname, 'dist') }
35
}
0 commit comments