mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +02:00
23 lines
498 B
JavaScript
23 lines
498 B
JavaScript
var webpackMiddleware = require('webpack-dev-middleware')
|
|
var webpack = require('webpack')
|
|
var _ = require('lodash')
|
|
|
|
var webpackOptions = require('../../webpack.config.js')
|
|
|
|
var overrideOptions = {
|
|
debug: true,
|
|
devtool: 'source-map'
|
|
//devtool: 'eval'
|
|
}
|
|
|
|
var finalOptions = _.assign(webpackOptions, overrideOptions)
|
|
|
|
module.exports = webpackMiddleware(webpack(finalOptions), {
|
|
noInfo: false,
|
|
quiet: false,
|
|
lazy: false,
|
|
publicPath: '/static/build/',
|
|
stats: {
|
|
colors: true
|
|
}
|
|
})
|