diff --git a/templates/common/_webpack.config.js b/templates/common/_webpack.config.js index 78a537f..68e31f9 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 697e35f..234b13c 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' }],