2017-05-17 07:09:47 +00:00
|
|
|
/* eslint-disable */
|
2019-07-10 04:17:25 +00:00
|
|
|
const path = require('path');
|
|
|
|
const webpack = require('webpack');
|
|
|
|
const ManifestPlugin = require('webpack-manifest-plugin');
|
2016-02-27 21:53:11 +00:00
|
|
|
|
2018-01-04 05:35:13 +00:00
|
|
|
commonWebpackConfig = require('./webpack.config');
|
2016-02-27 21:53:11 +00:00
|
|
|
|
|
|
|
productionWebpackConfig = Object.assign(commonWebpackConfig, {
|
|
|
|
cache: true,
|
2020-08-12 20:16:10 +00:00
|
|
|
mode: "production",
|
2017-07-11 05:54:26 +00:00
|
|
|
devtool: 'source-map',
|
2020-08-09 05:53:59 +00:00
|
|
|
entry: ['./app/index'],
|
2016-02-27 21:53:11 +00:00
|
|
|
output: {
|
2018-01-04 05:38:02 +00:00
|
|
|
path: path.join(__dirname, 'dist'),
|
2016-05-24 03:35:19 +00:00
|
|
|
filename: 'bundle.[hash].js',
|
|
|
|
publicPath: '/static/',
|
2016-02-27 21:53:11 +00:00
|
|
|
},
|
2018-01-04 01:35:51 +00:00
|
|
|
stats: "normal"
|
2016-02-27 21:53:11 +00:00
|
|
|
});
|
2018-01-22 06:24:10 +00:00
|
|
|
productionWebpackConfig.plugins = [
|
|
|
|
...productionWebpackConfig.plugins,
|
2020-08-12 20:16:10 +00:00
|
|
|
new ManifestPlugin()
|
2018-01-22 06:24:10 +00:00
|
|
|
];
|
2016-02-27 21:53:11 +00:00
|
|
|
|
|
|
|
module.exports = productionWebpackConfig;
|