This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/webpack.config.prod.js

26 lines
634 B
JavaScript
Raw Normal View History

2017-05-17 07:09:47 +00:00
/* eslint-disable */
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,
mode: "production",
devtool: 'source-map',
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,
new ManifestPlugin()
2018-01-22 06:24:10 +00:00
];
2016-02-27 21:53:11 +00:00
module.exports = productionWebpackConfig;