diff --git a/templates/common/_webpack.config.js b/templates/common/_webpack.config.js index 0701d89..b23c0b0 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) { %>babel!<% }%>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 1427065..2e89773 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) { %>babel!<% }%>jsx-loader?harmony' }, { test: /\.css$/,