Move to webpack

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-01-22 14:19:02 +01:00
parent e94986744d
commit 24f4f84eb6
43 changed files with 184 additions and 218 deletions

13
js/webpack.prod.config.js Normal file
View File

@@ -0,0 +1,13 @@
const webpack = require('webpack');
const merge = require('webpack-merge');
const baseConfig = require('./webpack.config.js');
module.exports = merge(baseConfig, {
plugins: [
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('production')
}
}),
]
});