From 945bb11da69a8f0c048e54b0bcc0eb8efec046d5 Mon Sep 17 00:00:00 2001 From: Raymond Ha Date: Tue, 17 Feb 2015 01:58:10 -0500 Subject: [PATCH] Fix jshint preloader --- templates/common/_webpack.config.js | 4 ++-- templates/common/_webpack.dist.config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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' }],