website/webpack.prod.js
2021-10-07 09:21:45 +09:00

22 lines
397 B
JavaScript

const webpack = require('webpack');
const config = require('./webpack.base.js');
module.exports = Object.assign(
config,
{
mode: "production",
optimization:
{
minimize: true
},
plugins: config.plugins.concat([
new webpack.DefinePlugin(
{
'process.env':
{
'DEBUG': false
} // set a DEBUG flag that can be used in the scripts (can be skipped)
})
])
}
);