2018-10-10 19:54:27 +00:00
|
|
|
const common = require('./webpack.common.js')
|
|
|
|
const htmlexport = require('./webpack.htmlexport')
|
|
|
|
const merge = require('webpack-merge')
|
|
|
|
const path = require('path')
|
2018-07-03 20:47:50 +00:00
|
|
|
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin')
|
2016-10-11 07:45:00 +00:00
|
|
|
|
2018-10-10 19:54:27 +00:00
|
|
|
module.exports = [
|
|
|
|
merge(common, {
|
|
|
|
mode: 'production',
|
|
|
|
output: {
|
|
|
|
path: path.join(__dirname, 'public/build'),
|
2019-12-19 17:00:51 +00:00
|
|
|
publicPath: 'build/',
|
2018-10-10 19:54:27 +00:00
|
|
|
filename: '[name].[contenthash].js'
|
2018-07-02 20:24:56 +00:00
|
|
|
}
|
2018-10-10 19:54:27 +00:00
|
|
|
}),
|
|
|
|
merge(htmlexport, {
|
|
|
|
mode: 'production',
|
|
|
|
optimization: {
|
|
|
|
minimizer: [
|
|
|
|
new OptimizeCSSAssetsPlugin({})
|
2018-07-02 20:24:56 +00:00
|
|
|
]
|
2018-10-10 19:54:27 +00:00
|
|
|
}
|
|
|
|
})]
|