Skip to content

Commit 25208ab

Browse files
committedDec 4, 2017
Fixes issue timarney#145
1 parent a8e3edf commit 25208ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎packages/react-app-rewire-less/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ function createRewireLess(lessLoaderOptions = {}) {
1010
rule =>
1111
rule.loader &&
1212
typeof rule.loader === 'string' &&
13-
rule.loader.indexOf(`${path.sep}file-loader${path.sep}`) !== -1
13+
(rule.loader.indexOf(`${path.sep}file-loader${path.sep}`) !== -1 ||
14+
rule.loader.indexOf(`@file-loader${path.sep}`) !== -1)
1415
);
1516
fileLoader.exclude.push(lessExtension);
1617

0 commit comments

Comments
 (0)
Please sign in to comment.