Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c83f2af

Browse files
docker file and webpack fix (#186)
1 parent 24b0abd commit c83f2af

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ COPY conf/defaults.ini ./conf/defaults.ini
2424

2525
RUN apk add --no-cache make build-base python3
2626

27-
RUN yarn install --immutable
27+
RUN yarn install
2828

2929
COPY tsconfig.json .eslintrc .editorconfig .browserslistrc .prettierrc.js ./
3030
COPY scripts scripts

‎scripts/webpack/webpack.dev.js‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
'use strict';
22

33
const browserslist = require('browserslist');
4+
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
5+
const { EsbuildPlugin } = require('esbuild-loader');
46
const { resolveToEsbuildTarget } = require('esbuild-plugin-browserslist');
57
const ESLintPlugin = require('eslint-webpack-plugin');
68
const 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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /