accountant-ui/config/webpack.dev.js

35 lines
728 B
JavaScript
Raw Permalink Normal View History

2017-11-07 22:41:52 +01:00
// vim: set tw=80 ts=2 sw=2 sts=2:
2018-06-09 23:49:46 +02:00
const webpackMerge = require('webpack-merge');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const commonConfig = require('./webpack.common.js');
const helpers = require('./helpers');
2017-11-07 22:41:52 +01:00
module.exports = webpackMerge(commonConfig, {
devtool: 'cheap-module-eval-source-map',
2018-06-09 23:54:11 +02:00
mode: 'development',
2017-11-07 22:41:52 +01:00
output: {
path: helpers.root('dist'),
publicPath: '/',
filename: '[name].js',
chunkFilename: '[id].chunk.js'
},
plugins: [
new ExtractTextPlugin('[name].css')
],
devServer: {
proxy: {
'/api': {
target: 'http://localhost:5000',
secure: false
}
},
historyApiFallback: true,
stats: 'minimal'
}
});