We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
there is a much nicer way:
module.exports = (env, options) =>({ ... devServer: { port: '8080', devMiddleware: { writeToDisk: true, }, headers: { 'Access-Control-Allow-Origin': '*' }, }, plugins: [ new WebpackManifestPlugin({ writeToFileEmit: true, }), ], output: { ... # replaces clean plugin clean: true } }),
Sorry, something went wrong.
No branches or pull requests
For debugging it is better to have webpack-dev-server active. Sadly it is a bit tricky to configure:
webpack.config.js
it would be nice to include this trick in the documentation
My project uses this setup:
https://github.com/devkral/secretgraph
The text was updated successfully, but these errors were encountered: