27 lines
584 B
JavaScript
Raw Normal View History

// #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 14:57:01 +02:00
output: {
path: helpers.root('dist'),
2017-04-12 14:57:01 +02:00
publicPath: '/',
filename: '[name].js',
chunkFilename: '[id].chunk.js'
},
2017-04-12 14:57:01 +02:00
plugins: [
new ExtractTextPlugin('[name].css')
],
2017-04-12 14:57:01 +02:00
devServer: {
historyApiFallback: true,
stats: 'minimal'
}
});
2017-04-12 14:57:01 +02:00
// #enddocregion