Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Commit 43d0bb9

Browse files
authored
Merge pull request #22 from Vittly/adding-all-levels-into-bem-loader-include
Add levels to main src for Babel-loader
2 parents 7bfce0e + 15f7935 commit 43d0bb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/bem-react-scripts/config/webpack.config.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ module.exports = {
157157
},
158158
},
159159
],
160-
include: paths.appSrc,
160+
include: [paths.appSrc].concat(Object.keys(paths.appLevels)),
161161
},
162162
// ** ADDING/UPDATING LOADERS **
163163
// The "url" loader handles all assets unless explicitly excluded.

packages/bem-react-scripts/config/webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ module.exports = {
192192
},
193193
},
194194
],
195-
include: paths.appSrc,
195+
include: [paths.appSrc].concat(Object.keys(paths.appLevels)),
196196
},
197197
// The notation here is somewhat confusing.
198198
// "postcss" loader applies autoprefixer to our CSS.

0 commit comments

Comments
 (0)