Skip to content
New issue

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

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

Open
lanwen opened this issue Nov 12, 2018 · 1 comment
Assignees

Comments

@lanwen
Copy link

lanwen commented Nov 12, 2018

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 facebook/create-react-app#5354
or discussed in facebook/create-react-app#5309

@ball-hayden
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants