updeep-remeda/perf/webpack.config.js

30 lines
527 B
JavaScript
Raw Normal View History

2017-04-19 00:55:46 +00:00
'use strict'
2017-04-19 00:47:53 +00:00
2017-04-19 00:55:46 +00:00
/* eslint strict:0, no-var:0, func-names:0 */
2015-08-10 06:25:19 +00:00
2017-04-19 00:55:46 +00:00
var path = require('path')
2015-08-10 06:25:19 +00:00
var config = require('../createWebpackConfig')({
context: __dirname,
2017-04-19 00:55:46 +00:00
entry: ['webpack/hot/dev-server', './index.js'],
2015-08-10 06:25:19 +00:00
minify: false,
env: 'production',
2017-04-19 00:55:46 +00:00
})
2015-08-10 06:25:19 +00:00
config.output = {
path: path.join(__dirname, './build'),
publicPath: '/assets/',
filename: 'perf.js',
2017-04-19 00:55:46 +00:00
}
2015-08-10 06:25:19 +00:00
config.devServer = {
contentBase: __dirname,
noInfo: true,
hot: true,
inline: true,
2017-04-19 00:55:46 +00:00
}
2015-08-10 06:25:19 +00:00
2017-04-19 00:55:46 +00:00
config.module.noParse = [/benchmark\.js$/]
2015-08-10 06:25:19 +00:00
2017-04-19 00:55:46 +00:00
module.exports = config