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

Commit

Permalink
fix(webpack): Fix importing CSS with latest webpack
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bespokebob authored and cdaringe committed Sep 28, 2018
1 parent d77dfa3 commit 11c888e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@
"url": "https://github.com/Tripwire/octagon.git"
},
"version": "0.0.0-development",
"sideEffects": false,
"sideEffects": [
"*.css"
],
"lint-staged": {
"linters": {
"src/**/*.js": [
Expand Down

0 comments on commit 11c888e

Please sign in to comment.