nwb
nwb copied to clipboard
Support INLINE_RUNTIME_CHUNK=false to fit the strict Content-Security-Policy header
This issue is a:
- Feature request
Is the version of
nwb
you're using installed globally or locally?
- locally
Which versions of Node.js, npm and nwb are you using (if using it globally)?
nwb version 0.23.0
Same way as its done in https://github.com/facebook/create-react-app/pull/5354 or discussed in https://github.com/facebook/create-react-app/issues/5309
I'm currently working around this by passing the "--no-html" flag and merging in the following config:
const HtmlPlugin = require("html-webpack-plugin");
module.exports = {
webpack: {
extra: {
plugins: [
new HtmlPlugin({
template: 'src/index.html',
minify: true
})
]
}
}
};