Skip to content

Commit

Permalink
chore: use target directly
Browse files Browse the repository at this point in the history
  • Loading branch information
y1d7ng committed Aug 19, 2021
1 parent d48a4f8 commit 0a1822d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/plugins/css.ts
Expand Up @@ -898,11 +898,10 @@ async function doUrlReplace(
}

async function minifyCSS(css: string, config: ResolvedConfig) {
const target = config.build.target
const { code, warnings } = await transform(css, {
loader: 'css',
minify: true,
target: target || undefined
target: config.build.target || undefined
})
if (warnings.length) {
const msgs = await formatMessages(warnings, { kind: 'warning' })
Expand Down

0 comments on commit 0a1822d

Please sign in to comment.