-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
For debugging it is better to have webpack-dev-server active. Sadly it is a bit tricky to configure:
webpack.config.js
module.exports = (env, options) =>({
...
devServer: {
port: '8080'
},
plugins: {
new CleanWebpackPlugin({
verbose: true,
//important elsewise minifest.json is deleted
cleanOnceBeforeBuildPatterns: ['**/*', '!manifest.json'],
}),
new WebpackManifestPlugin({
writeToFileEmit: true,
publicPath: env['WEBPACK_SERVE'] ? 'http://localhost:8080/' : null,
}),
})
it would be nice to include this trick in the documentation
My project uses this setup:
https://github.com/devkral/secretgraph
Metadata
Metadata
Assignees
Labels
No labels