@ditojs/build
Advanced tools
Comparing version 1.10.1 to 1.11.0
{ | ||
"name": "@ditojs/build", | ||
"version": "1.10.1", | ||
"version": "1.11.0", | ||
"type": "module", | ||
@@ -19,7 +19,7 @@ "repository": "https://github.com/ditojs/dito/tree/master/packages/build", | ||
"engines": { | ||
"node": ">= 16.0.0", | ||
"node": ">= 18.0.0", | ||
"yarn": ">= 1.0.0" | ||
}, | ||
"browserslist": [ | ||
"node >= 16" | ||
"node >= 18" | ||
], | ||
@@ -35,3 +35,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "2a5658aeeef2666b0a5ddd37ce6fbdb1d9eab3c3" | ||
"gitHead": "cc2a838ccf15a75f435844f3087698c4efaf44e4" | ||
} |
import autoprefixer from 'autoprefixer' | ||
import postcssInset from 'postcss-inset' | ||
export function getPostCssConfig({ removeCharset = true }) { | ||
export function getPostCssConfig() { | ||
return { | ||
plugins: [ | ||
autoprefixer(), | ||
postcssInset(), | ||
removeCharset && { | ||
// https://github.com/vitejs/vite/issues/5833 | ||
postcssPlugin: 'internal:remove-charset', | ||
AtRule: { | ||
charset: rule => { | ||
if (rule.name === 'charset') { | ||
rule.remove() | ||
} | ||
} | ||
} | ||
} | ||
postcssInset() | ||
] | ||
} | ||
} |
@@ -68,3 +68,3 @@ import { defineConfig as defineViteConfig } from 'vite' | ||
}, | ||
postcss: getPostCssConfig({ removeCharset: true }) | ||
postcss: getPostCssConfig() | ||
} | ||
@@ -71,0 +71,0 @@ : null, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7740
195