Skip to content

Conversation

@outoftime
Copy link
Contributor

Make Webpack configuration less sensitive to the specific layout of node_modules. Extracted from #561, which may need to be put on hold until yarn properly handles optional dependencies.

Most usefully, changes the logic for loading stylelint rule modules—only load rules that are whitelisted, instead of loading all rules unless they’re blacklisted. Rules themselves often have external library dependencies, so this trims down the gzipped bundle size of the linter bundle from 415K to 355K.

Make Webpack configuration less sensitive to the specific layout of
`node_modules`. Extracted from
popcodeorg#561, which may need to be put
on hold until yarn properly handles optional dependencies.

Most usefully, changes the logic for loading stylelint rule modules—only
load rules that are whitelisted, instead of loading all rules unless
they’re blacklisted. Rules themselves often have external library
dependencies, so this trims down the gzipped bundle size of the linter
bundle from 415K to 355K.
@outoftime outoftime merged commit bfdfd88 into popcodeorg:master Nov 20, 2016
@outoftime outoftime deleted the webpack-resilience branch November 20, 2016 22:24
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