2017-01-31 17:31:55 -05:00
|
|
|
// #docregion
|
|
|
|
var webpackMerge = require('webpack-merge');
|
|
|
|
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|
|
|
var commonConfig = require('./webpack.common.js');
|
|
|
|
var helpers = require('./helpers');
|
|
|
|
|
|
|
|
module.exports = webpackMerge(commonConfig, {
|
|
|
|
devtool: 'cheap-module-eval-source-map',
|
2017-04-12 15:53:18 -04:00
|
|
|
|
2017-01-31 17:31:55 -05:00
|
|
|
output: {
|
|
|
|
path: helpers.root('dist'),
|
2017-04-12 15:53:18 -04:00
|
|
|
publicPath: '/',
|
2017-01-31 17:31:55 -05:00
|
|
|
filename: '[name].js',
|
|
|
|
chunkFilename: '[id].chunk.js'
|
|
|
|
},
|
2017-04-12 15:53:18 -04:00
|
|
|
|
2017-01-31 17:31:55 -05:00
|
|
|
plugins: [
|
|
|
|
new ExtractTextPlugin('[name].css')
|
|
|
|
],
|
2017-04-12 15:53:18 -04:00
|
|
|
|
2017-01-31 17:31:55 -05:00
|
|
|
devServer: {
|
|
|
|
historyApiFallback: true,
|
|
|
|
stats: 'minimal'
|
|
|
|
}
|
|
|
|
});
|
2017-04-12 15:53:18 -04:00
|
|
|
// #enddocregion
|