You've already forked factorio-blueprint-editor
mirror of
https://github.com/teoxoy/factorio-blueprint-editor.git
synced 2025-11-23 22:15:01 +02:00
first commit
This commit is contained in:
38
webpack.prod.js
Normal file
38
webpack.prod.js
Normal file
@@ -0,0 +1,38 @@
|
||||
'use strict'
|
||||
|
||||
const merge = require('webpack-merge')
|
||||
const common = require('./webpack.common.js')
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
|
||||
const Visualizer = require('webpack-visualizer-plugin')
|
||||
//const ClosureCompilerPlugin = require('webpack-closure-compiler')
|
||||
|
||||
// https://webpack.github.io/analyse/
|
||||
|
||||
module.exports = merge(common, {
|
||||
mode: 'production',
|
||||
profile: true,
|
||||
plugins: [
|
||||
new OptimizeCssAssetsPlugin({
|
||||
cssProcessorOptions: { discardComments: { removeAll: true } }
|
||||
}),
|
||||
new BundleAnalyzerPlugin({
|
||||
reportFilename: './stats/report.html',
|
||||
analyzerMode: 'static',
|
||||
openAnalyzer: false,
|
||||
generateStatsFile: true,
|
||||
statsFilename: './stats/stats.json'
|
||||
}),
|
||||
new Visualizer({
|
||||
filename: './stats/statistics.html'
|
||||
})
|
||||
// new ClosureCompilerPlugin({
|
||||
// compiler: {
|
||||
// language_in: 'ECMASCRIPT6',
|
||||
// language_out: 'ECMASCRIPT5',
|
||||
// compilation_level: 'ADVANCED'
|
||||
// },
|
||||
// jsCompiler: true,
|
||||
// concurrency: 3,
|
||||
// })
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user