prismarine-web-client-mirror/webpack.prod.js
Romain Beaumont c8e3ffd019
Optimize webpack usage, fix #34 (#58)
* introduce prod/dev build https://webpack.js.org/guides/production/
* use it properly with express https://webpack.js.org/guides/development/#using-webpack-dev-middleware
to provide a fast npm start (5 second)
2021-03-06 01:29:28 +01:00

15 lines
459 B
JavaScript

const { merge } = require('webpack-merge')
const common = require('./webpack.common.js')
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const webpack = require('webpack')
module.exports = merge(common, {
mode: 'production',
plugins: [
new CleanWebpackPlugin(),
new webpack.optimize.ModuleConcatenationPlugin(),
new LodashModuleReplacementPlugin()
]
})