Changed to now use a prod and a dev webpack config. Our prod config now minifies and sets up caching for us. Package json now has build command.

This commit is contained in:
2017-10-24 23:01:44 +02:00
parent c6fac11b8d
commit d10b974545
5 changed files with 84 additions and 35 deletions

17
client/webpack.dev.js Normal file
View File

@@ -0,0 +1,17 @@
/*
* @Author: KevinMidboe
* @Date: 2017-06-01 19:09:16
* @Last Modified by: KevinMidboe
* @Last Modified time: 2017-10-24 22:12:52
*/
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
module.exports = merge(common, {
devtool: 'inline-source-map',
devServer: {
contentBase: './dist',
headers: {'Access-Control-Allow-Origin': '*'}
}
});;