feat(webpack): create basic production and dev config

This commit is contained in:
Chaim Lev-Ari
2018-11-01 10:29:51 +02:00
parent bedeb3e354
commit c52eb28b79
6 changed files with 149 additions and 118 deletions
+13
View File
@@ -0,0 +1,13 @@
const path = require('path');
const webpackMerge = require('webpack-merge');
const commonConfig = require('./webpack.common.js');
module.exports = webpackMerge(commonConfig, {
// devtool: 'cheap-module-source-map',
mode: 'development',
devServer: {
contentBase: path.join(__dirname, '.tmp'),
compress: true,
port: 90000
}
});