This commit is contained in:
parent
57f68c7a59
commit
dcae2aae28
|
@ -46,6 +46,8 @@ pipeline:
|
|||
|
||||
node-build:
|
||||
image: node:16-slim
|
||||
environment:
|
||||
- CPU_COUNT=3
|
||||
commands:
|
||||
- npm install -g svg2ttf ttf2eot ttf2woff2
|
||||
- svg2ttf assets/fonts/deblan/src/deblan-icon.svg assets/fonts/deblan/deblan-icon.ttf
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
const Encore = require('@symfony/webpack-encore');
|
||||
const SpeedMeasurePlugin = require("speed-measure-webpack-plugin");
|
||||
// const smp = new SpeedMeasurePlugin();
|
||||
|
||||
// Manually configure the runtime environment if not already configured yet by the "encore" command.
|
||||
// It's useful when you use tools that rely on webpack.config.js file.
|
||||
|
@ -49,6 +51,10 @@ Encore
|
|||
config.plugins.push('@babel/plugin-proposal-class-properties');
|
||||
})
|
||||
|
||||
.configureTerserPlugin((config) => {
|
||||
config.parallel = process.env.CPU_COUNT || true;
|
||||
})
|
||||
|
||||
// enables @babel/preset-env polyfills
|
||||
.configureBabelPresetEnv((config) => {
|
||||
config.useBuiltIns = 'usage';
|
||||
|
|
Loading…
Reference in a new issue