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

Commit 11c888e

Browse files
bespokebobcdaringe
authored andcommitted
fix(webpack): Fix importing CSS with latest webpack
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
1 parent d77dfa3 commit 11c888e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@
9595
"url": "https://github.com/Tripwire/octagon.git"
9696
},
9797
"version": "0.0.0-development",
98-
"sideEffects": false,
98+
"sideEffects": [
99+
"*.css"
100+
],
99101
"lint-staged": {
100102
"linters": {
101103
"src/**/*.js": [

0 commit comments

Comments
 (0)