Update webpack config to require webpack.test.js

This commit is contained in:
Marliana Lara 2017-09-22 11:30:21 -04:00
parent 851f01ddd2
commit 8d9ef4445a
No known key found for this signature in database
GPG Key ID: 38C73B40DFA809EE

View File

@ -1,4 +1,5 @@
let path = require('path');
const webpackConfig = require('../../../build/webpack.test.js');
module.exports = config => {
config.set({
@ -30,22 +31,7 @@ module.exports = config => {
return '/static/partials' + filepath;
}
},
webpack: {
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
exclude: /node_modules/
},
{
test: /\.json$/,
loader: 'json',
exclude: /node_modules/
},
]
}
},
webpack: webpackConfig,
webpackMiddleware: {
noInfo: 'errors-only'
}