Skip to content

Commit 8110a32

Browse files
committed
windows separators
1 parent 81dd7d6 commit 8110a32

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/base.config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,10 @@ export default function webpackConfigFactory(args: any): WebpackConfiguration {
443443
if (path.indexOf(srcPath) > -1 || path.indexOf(testPath) > -1) {
444444
return true;
445445
}
446-
return /\.m\.css$/.test(path) && !/.*\/node_modules\/@dojo\/widgets\/.*/.test(path);
446+
return (
447+
/\.m\.css$/.test(path) &&
448+
!/.*(\/|\\)node_modules(\/|\\)@dojo(\/|\\)widgets(\/|\\).*/.test(path)
449+
);
447450
},
448451
use: ExtractTextPlugin.extract({
449452
fallback: ['style-loader'],
@@ -463,7 +466,7 @@ export default function webpackConfigFactory(args: any): WebpackConfiguration {
463466
oneOf: [{ issuer: indexHtmlPattern, use: 'identity-loader' }, { use: cssLoader }]
464467
},
465468
{
466-
exclude: /.*\/node_modules\/@dojo\/widgets\/.*/,
469+
exclude: /.*(\/|\\)node_modules(\/|\\)@dojo(\/|\\)widgets(\/|\\).*/,
467470
test: /\.m\.css$/,
468471
use: postCssModuleLoader
469472
}

0 commit comments

Comments
 (0)