From dc457ceb29dc5f2a20e50fbc4161978069c04e81 Mon Sep 17 00:00:00 2001 From: Matt Hink Date: Wed, 20 Jul 2016 15:03:57 -0700 Subject: [PATCH] Work around weird ExtractTextWebpackPlugin bug. See: https://github.com/webpack/extract-text-webpack-plugin/pull/166 --- src/components/Header/styles.css | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/Header/styles.css b/src/components/Header/styles.css index abf2358..fa6677e 100644 --- a/src/components/Header/styles.css +++ b/src/components/Header/styles.css @@ -1,3 +1,14 @@ +/* + * NOTE: the ordering of 'composes' rules matters for some weird reason. + * Check out this PR, and update extract-text-webpack-plugin if it's been + * merged. + * + * https://github.com/webpack/extract-text-webpack-plugin/pull/166 + */ +.appHeaderWrapper { + composes: layoutElementWrapper from 'styles/layout.css'; /* MAY CAUSE ERRORS */ +} + .appHeader { background: white; composes: z-depth-1 from 'styles/base.css'; @@ -12,6 +23,4 @@ margin: 0; } -.appHeaderWrapper { - composes: layoutElementWrapper from 'styles/layout.css'; -} +