Commit c90005ac authored by Yechang's avatar Yechang
Browse files

chore(css): minify

parent c169362b
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ ENV PUBLIC_COMMIT_SHORT_SHA $COMMIT_SHORT_SHA
ARG SENTRY_DSN
ENV PUBLIC_SENTRY_DSN $SENTRY_DSN

RUN pnpm run build \
RUN NODE_OPTIONS=--max_old_space_size=4096 pnpm run build \
    && pnpm prune --production

FROM node:20-alpine
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@
		"@typescript-eslint/parser": "^7.0.0",
		"autoprefixer": "^10.4.16",
		"bits-ui": "^0.19.3",
		"cssnano": "^6.1.2",
		"cz-conventional-changelog": "^3.3.0",
		"eslint": "^8.56.0",
		"eslint-config-prettier": "^9.1.0",
+484 −2

File changed.

Preview size limit exceeded, changes collapsed.

+5 −1
Original line number Diff line number Diff line
@@ -6,7 +6,11 @@ const config = {
		//Some plugins, like tailwindcss/nesting, need to run before Tailwind,
		tailwindcss(),
		//But others, like autoprefixer, need to run after,
		autoprefixer
		autoprefixer,

		require('cssnano')({
			preset: 'default'
		})
	]
};

+2 −1
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ export default defineConfig({
		drop: process.env.ENV === 'development' ? [] : ['console', 'debugger']
	},
	build: {
		minify: 'esbuild'
		minify: 'esbuild',
		sourcemap: false
	}
});
 No newline at end of file