mirror of
https://github.com/ansible/awx.git
synced 2026-04-13 14:09:25 -02:30
Update webpack config to require webpack.test.js
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
let path = require('path');
|
let path = require('path');
|
||||||
|
const webpackConfig = require('../../../build/webpack.test.js');
|
||||||
|
|
||||||
module.exports = config => {
|
module.exports = config => {
|
||||||
config.set({
|
config.set({
|
||||||
@@ -30,22 +31,7 @@ module.exports = config => {
|
|||||||
return '/static/partials' + filepath;
|
return '/static/partials' + filepath;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
webpack: {
|
webpack: webpackConfig,
|
||||||
module: {
|
|
||||||
loaders: [
|
|
||||||
{
|
|
||||||
test: /\.js$/,
|
|
||||||
loader: 'babel',
|
|
||||||
exclude: /node_modules/
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.json$/,
|
|
||||||
loader: 'json',
|
|
||||||
exclude: /node_modules/
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
webpackMiddleware: {
|
webpackMiddleware: {
|
||||||
noInfo: 'errors-only'
|
noInfo: 'errors-only'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user