feat(build): optimize build
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
3f51bdd362
commit
8ee3cc8767
|
@ -8,6 +8,8 @@ if (!Encore.isRuntimeEnvironmentConfigured()) {
|
|||
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
|
||||
}
|
||||
|
||||
const TERSER_PARALLEL = process.env.hasOwnProperty('CPU_COUNT') ? parseInt(process.env.CPU_COUNT) : true;
|
||||
|
||||
Encore
|
||||
// directory where compiled assets will be stored
|
||||
.setOutputPath('public/build/')
|
||||
|
@ -52,7 +54,7 @@ Encore
|
|||
})
|
||||
|
||||
.configureTerserPlugin((config) => {
|
||||
config.parallel = process.env.CPU_COUNT || true;
|
||||
config.parallel = TERSER_PARALLEL;
|
||||
})
|
||||
|
||||
// enables @babel/preset-env polyfills
|
||||
|
|
Loading…
Reference in a new issue