nwb icon indicating copy to clipboard operation
nwb copied to clipboard

Support INLINE_RUNTIME_CHUNK=false to fit the strict Content-Security-Policy header

Open lanwen opened this issue 5 years ago • 1 comments

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

lanwen avatar Nov 12 '18 22:11 lanwen

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
        })
      ]
    }
  }
};

ball-hayden avatar May 14 '19 10:05 ball-hayden