diff --git a/templates/common/_webpack.config.js b/templates/common/_webpack.config.js index bf7f1ef..0701d89 100644 --- a/templates/common/_webpack.config.js +++ b/templates/common/_webpack.config.js @@ -32,8 +32,8 @@ module.exports = { }, module: { preLoaders: [{ - test: '\\.js$', - exclude: 'node_modules', + test: /\.js$/, + exclude: /node_modules/, loader: 'jshint' }], loaders: [{ diff --git a/templates/common/_webpack.dist.config.js b/templates/common/_webpack.dist.config.js index 724e9f7..1427065 100644 --- a/templates/common/_webpack.dist.config.js +++ b/templates/common/_webpack.dist.config.js @@ -38,8 +38,8 @@ module.exports = { module: { preLoaders: [{ - test: '\\.js$', - exclude: 'node_modules', + test: /\.js$/, + exclude: /node_modules/, loader: 'jshint' }],