We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecf5ec1 commit d2c81f7Copy full SHA for d2c81f7
packages/plugin-legacy/src/index.ts
@@ -209,7 +209,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
209
config.build = {}
210
}
211
212
- if (!config.build.cssTarget) {
+ if (genLegacy && !config.build.cssTarget) {
213
// Hint for esbuild that we are targeting legacy browsers when minifying CSS.
214
// Full CSS compat table available at https://github.com/evanw/esbuild/blob/78e04680228cf989bdd7d471e02bbc2c8d345dc9/internal/compat/css_table.go
215
// But note that only the `HexRGBA` feature affects the minify outcome.
0 commit comments