Skip to content

Commit

Permalink
fix(css): minify css will transform rgba to #rrggbbaa (vitejs#4658)
Browse files Browse the repository at this point in the history
  • Loading branch information
y1d7ng authored and aleclarson committed Nov 8, 2021
1 parent 979a719 commit 545a60d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/plugins/css.ts
Expand Up @@ -900,7 +900,8 @@ async function doUrlReplace(
async function minifyCSS(css: string, config: ResolvedConfig) {
const { code, warnings } = await transform(css, {
loader: 'css',
minify: true
minify: true,
target: config.build.target || undefined
})
if (warnings.length) {
const msgs = await formatMessages(warnings, { kind: 'warning' })
Expand Down

0 comments on commit 545a60d

Please sign in to comment.