Skip to content

Conversation

sampi
Copy link
Owner

@sampi sampi commented Apr 22, 2018

If you don't feel secure enough, you can always add Subresource Integrity to your static assets.

This is how you can add webpack plugins, not only SRI ;)

const SriPlugin = require('webpack-subresource-integrity');

module.exports = webpackConfig => {
webpackConfig.plugins.push(
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be trickier if we had to add webpack plugins in a certain order, but this one needs to be the last one so we just push it to the Array of plugins.

@sampi sampi changed the title Step 3 - Add webpack-subresource-integrity Step 4 - Add webpack-subresource-integrity Apr 22, 2018
@sampi sampi changed the title Step 4 - Add webpack-subresource-integrity Step 4 — Add webpack-subresource-integrity Apr 22, 2018
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

Successfully merging this pull request may close these issues.

1 participant