Skip to content

Commit

Permalink
component archetype style loader fixes (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
didi0613 authored and jchip committed Apr 26, 2018
1 parent 436f56e commit 3d427fe
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ const cssModuleStylusSupport = archetypeAppWebpack.cssModuleStylusSupport;
const cssLoaderOptions =
"?modules&localIdentName=[name]__[local]___[hash:base64:5]&-autoprefixer";
const cssQuery = `${styleLoader}!${cssLoader}!${postcssLoader}`;
const stylusQuery = `${cssLoader}?-autoprefixer!${stylusLoader}`;
const stylusQuery = `${styleLoader}!${cssLoader}?-autoprefixer!${stylusLoader}`;
const scssQuery = `${cssQuery}!${sassLoader}`;
const cssModuleQuery = `${cssLoader}${cssLoaderOptions}!${postcssLoader}`;
const cssStylusQuery = `${cssLoader}${cssLoaderOptions}!${postcssLoader}!${stylusLoader}`;
const cssScssQuery = `${cssLoader}${cssLoaderOptions}!${postcssLoader}!${sassLoader}`;
const cssModuleQuery = `${styleLoader}!${cssLoader}${cssLoaderOptions}!${postcssLoader}`;
const cssStylusQuery = `${cssModuleQuery}!${stylusLoader}`;
const cssScssQuery = `${cssModuleQuery}!${sassLoader}`;

const cssExists =
glob.sync(Path.resolve(process.cwd(), "src/styles", "*.css")).length > 0;
Expand Down

0 comments on commit 3d427fe

Please sign in to comment.