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

Step 4 — Add webpack-subresource-integrity #5

Open
wants to merge 1 commit into
base: 03-less
Choose a base branch
from
Open

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