Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

fix(webpack): Fix importing CSS with latest webpack #301

Merged
merged 1 commit into from
Sep 28, 2018
Merged

Conversation

bespokebob
Copy link
Contributor

problem statement

Webpack 4 will drop any unused imports unless they are declared to have side effects. We have to declare css files as having side effects (despite the fact that it should be obvious), or webpack will just drop it.

solution

Declare *.css as having side effects in package.json

discussion

Fixes #297

Webpack 4 will drop any unused imports unless they are declared to have side effects. We have to declare css files as having side effects (despite the fact that it should be obvious), or webpack will just drop it.

Fixes #297
@bespokebob bespokebob requested a review from cdaringe September 28, 2018 13:12
@cdaringe cdaringe merged commit 11c888e into master Sep 28, 2018
@cdaringe cdaringe deleted the fix-css-import branch September 28, 2018 15:43
@wa11-e
Copy link

wa11-e commented Sep 28, 2018

🎉 This PR is included in version 15.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants