add webpack-cli

This commit is contained in:
ValeraS
2018-09-11 17:16:17 +03:00
committed by Mrugesh Mohapatra
parent 3ebdd8c034
commit 36df5b8ef9
3 changed files with 71 additions and 6 deletions

View File

@ -5,6 +5,7 @@ const UglifyPlugin = require('uglifyjs-webpack-plugin');
const __DEV__ = process.env.NODE_ENV !== 'production';
module.exports = {
mode: __DEV__ ? 'development' : 'production',
entry: './src/client/frame-runner.js',
devtool: __DEV__ ? 'inline-source-map' : 'source-map',
node: {
@ -69,4 +70,3 @@ module.exports.plugins.push(
sourceMap: true
})
);