mirror of
https://github.com/LukeHagar/firecamp.git
synced 2025-12-07 12:27:45 +00:00
feat: webpack build improvement 2x and unused scripts files are removed and refactored
This commit is contained in:
@@ -6,6 +6,7 @@ const TerserPlugin = require('terser-webpack-plugin');
|
||||
const base = require('./webpack.common');
|
||||
|
||||
// const withReport = process.env.npm_config_withReport;
|
||||
const nodeEnv = process.env.NODE_ENV;
|
||||
|
||||
module.exports = merge(base, {
|
||||
mode: 'development',
|
||||
@@ -15,7 +16,7 @@ module.exports = merge(base, {
|
||||
globalObject: 'this',
|
||||
filename: '[name].dev.js',
|
||||
chunkFilename: '[name].dev.js',
|
||||
path: `${__dirname}/build/${env}`,
|
||||
path: `${__dirname}/build/${nodeEnv}`,
|
||||
publicPath: '',
|
||||
},
|
||||
optimization: {
|
||||
|
||||
Reference in New Issue
Block a user