File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ COPY conf/defaults.ini ./conf/defaults.ini
2424
2525RUN apk add --no-cache make build-base python3
2626
27- RUN yarn install --immutable
27+ RUN yarn install
2828
2929COPY tsconfig.json .eslintrc .editorconfig .browserslistrc .prettierrc.js ./
3030COPY scripts scripts
Original file line number Diff line number Diff line change 11'use strict' ;
22
33const browserslist = require ( 'browserslist' ) ;
4+ const CssMinimizerPlugin = require ( 'css-minimizer-webpack-plugin' ) ;
5+ const { EsbuildPlugin } = require ( 'esbuild-loader' ) ;
46const { resolveToEsbuildTarget } = require ( 'esbuild-plugin-browserslist' ) ;
57const ESLintPlugin = require ( 'eslint-webpack-plugin' ) ;
68const ForkTsCheckerWebpackPlugin = require ( 'fork-ts-checker-webpack-plugin' ) ;
@@ -67,12 +69,22 @@ module.exports = (env = {}) => {
6769 } ,
6870
6971 // https://webpack.js.org/guides/build-performance/#avoid-extra-optimization-steps
72+ // optimization: {
73+ // moduleIds: 'named',
74+ // runtimeChunk: true,
75+ // removeAvailableModules: false,
76+ // removeEmptyChunks: false,
77+ // splitChunks: false,
78+ // },
79+
7080 optimization : {
7181 moduleIds : 'named' ,
7282 runtimeChunk : true ,
7383 removeAvailableModules : false ,
7484 removeEmptyChunks : false ,
7585 splitChunks : false ,
86+ minimize : parseInt ( env . noMinify , 10 ) !== 1 ,
87+ minimizer : [ new EsbuildPlugin ( esbuildOptions ) , new CssMinimizerPlugin ( ) ] ,
7688 } ,
7789
7890 // enable persistent cache for faster cold starts
You can’t perform that action at this time.
0 commit comments