Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #835 from Shopify/fix-cssvar-build
Browse files Browse the repository at this point in the history
Fix cssVarLoader running on development build
  • Loading branch information
t-kelly authored Oct 16, 2018
2 parents e375c1c + 55d206b commit 414e201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/slate-tools/tools/webpack/config/parts/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ const postcssLoader = {
const cssVarLoader = {loader: '@shopify/slate-cssvar-loader'};

cssRule.use = [
isDev ? styleLoader : MiniCssExtractPlugin.loader,
cssVarLoader,
...(isDev ? [styleLoader] : [MiniCssExtractPlugin.loader, cssVarLoader]),
cssLoader,
postcssLoader,
];
Expand Down
3 changes: 1 addition & 2 deletions packages/slate-tools/tools/webpack/config/parts/sass.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ const sassLoader = {
};

sassRule.use = [
isDev ? styleLoader : MiniCssExtractPlugin.loader,
cssVarLoader,
...(isDev ? [styleLoader] : [MiniCssExtractPlugin.loader, cssVarLoader]),
cssLoader,
postcssLoader,
sassLoader,
Expand Down

0 comments on commit 414e201

Please sign in to comment.