From 43736a3d36d007a9c17c588ec3d409742bfaf199 Mon Sep 17 00:00:00 2001 From: Raymond Ha Date: Tue, 17 Feb 2015 02:01:01 -0500 Subject: [PATCH] Exclude node_modules from js loaders --- templates/common/_webpack.config.js | 1 + templates/common/_webpack.dist.config.js | 1 + 2 files changed, 2 insertions(+) diff --git a/templates/common/_webpack.config.js b/templates/common/_webpack.config.js index 78a537f..cd94980 100644 --- a/templates/common/_webpack.config.js +++ b/templates/common/_webpack.config.js @@ -38,6 +38,7 @@ module.exports = { }], loaders: [{ test: /\.js$/, + exclude: /node_modules/, loader: 'react-hot!<% if (es6) { %>6to5!<% }%>jsx-loader?harmony' },<% if (stylesLanguage === 'sass') { %> { test: /\.sass/, diff --git a/templates/common/_webpack.dist.config.js b/templates/common/_webpack.dist.config.js index 697e35f..c96159d 100644 --- a/templates/common/_webpack.dist.config.js +++ b/templates/common/_webpack.dist.config.js @@ -45,6 +45,7 @@ module.exports = { loaders: [{ test: /\.js$/, + exclude: /node_modules/, loader: '<% if (es6) { %>6to5!<% }%>jsx-loader?harmony' }, { test: /\.css$/,