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
Don't crash when used in non-web builds #87
Comments
You can fix this by adding the plugin only for the client build, not for the server build: extend(config, ctx) {
config.output.crossOriginLoading = "anonymous";
if (ctx.isClient) {
config.plugins.push(
new SriPlugin({
hashFuncNames: ["sha256", "sha384"]
})
);
}
} We should handle this case more gracefully though, I'll change the issue title to reflect this. |
Thanks! I tried and it got fixed. However, the generated html with |
Disregard that, it seems `inject=false` is only used for the server-side build.
I'm not sure but it must have something to do with their custom template.
I might take another look at this but not sure yet when I'll get to it. If you can find out anything in the meantime please let me know.
|
It seems they bypass html-webpack-plugin altogether and use their own template rendering: If so there's not much this plugin can do. I suppose you could ask them to make But again, I don't know much about Nuxt or Vue so this might be completely off base. |
On Nuxt.js 2.0.0
This setting triggers this error
The text was updated successfully, but these errors were encountered: