We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 276b759 commit a897e72Copy full SHA for a897e72
1 file changed
internal/builder/embedded/views.js
@@ -427,6 +427,20 @@ function createTailwindPlugin(viewPath, options = {}) {
427
}
428
429
430
+ const presetEnvPath = resolveDependency(viewPath, 'postcss-preset-env')
431
+ if (presetEnvPath) {
432
+ const postcssPresetEnv = require(presetEnvPath)
433
+ const isRageMP = options.runtime === 'ragemp'
434
+ plugins.push(postcssPresetEnv({
435
+ stage: 1,
436
+ browsers: isRageMP ? 'chrome 97' : 'chrome 103',
437
+ features: {
438
+ 'color-mix': true,
439
+ },
440
+ }))
441
+ console.log(`[views] postcss-preset-env detected, applying CSS polyfills`)
442
+ }
443
+
444
console.log(`[views] Tailwind detected (v${tailwindInfo.version})`)
445
446
return {
0 commit comments