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

Fix cssVarLoader running on development build #835

Merged
merged 1 commit into from
Oct 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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