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

Cannot work with webpack-subresource-integrity #8889

Closed
inductor opened this issue Oct 2, 2018 · 2 comments
Closed

Cannot work with webpack-subresource-integrity #8889

inductor opened this issue Oct 2, 2018 · 2 comments

Comments

@inductor
Copy link

inductor commented Oct 2, 2018

Version

2.5.17

Reproduction link

waysact/webpack-subresource-integrity#87

Steps to reproduce

On Nuxt.js 2.0.0

    extend(config, ctx) {
      config.output.crossOriginLoading = "anonymous";
      if (ctx.isClient) {
        config.plugins.push(
          new SriPlugin({
            hashFuncNames: ["sha256", "sha384"]
          })
        );
      }
    }

Using the plugin with the setting above has no errors bu t the generated html with nuxt generate and nuxt start does not have integrity in the script tag.

What is expected?

integrity with hash should be in the script tag for SRI

What is actually happening?

integrity does not appear

@inductor
Copy link
Author

inductor commented Oct 2, 2018

Seems it's something with

return `<script src="${this.publicPath}/${file}" defer></script>`

@yyx990803
Copy link
Member

Please post Nuxt related issue to Nuxt's repo instead.

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

No branches or pull requests

2 participants