Skip to content

Commit e708e0f

Browse files
committed
Fixed regexp, probably
1 parent a1ae6f7 commit e708e0f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

webpack/config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ _loaders = [{
1919
exclude: /node_modules/,
2020
loader: 'babel-loader?presets[]=es2015'
2121
}, {
22-
// './src/*.js', './src/modules/*.js'
23-
test: /\.\.\/src\/[a-z]*\.js/,
22+
test: [/\.\.\/src\/([a-z]*)\.js$/, /\.\.\/src\/modules\/([a-z]*)\.js$/],
2423
exclude: /node_modules/,
2524
enforce: 'pre',
2625
loader: 'jshint-loader',
@@ -39,8 +38,7 @@ if (ENV === 'development') {
3938

4039
module: {
4140
loaders: [..._loaders, {
42-
// './test/*Spec.js'
43-
test: /\.[/]test[/][a-z*]\.js/,
41+
test: /\.\.\/test\/([a-z]*)Spec\.js$/,
4442
exclude: /node_modules/,
4543
enforce: 'pre',
4644
loader: 'jshint-loader',

0 commit comments

Comments
 (0)