Added keystatic
All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 42s
All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 42s
This commit is contained in:
@@ -1,16 +1,36 @@
|
||||
export default {
|
||||
plugins: {
|
||||
"postcss-import": {},
|
||||
"postcss-preset-env": {
|
||||
stage: 1,
|
||||
features: {
|
||||
"nesting-rules": false,
|
||||
},
|
||||
// postcss.config.js
|
||||
import postcssImport from 'postcss-import'
|
||||
import postcssPresetEnv from 'postcss-preset-env'
|
||||
import postcssUtilities from 'postcss-utilities'
|
||||
import postcssNesting from 'postcss-nesting'
|
||||
import { purgeCSSPlugin } from '@fullhuman/postcss-purgecss'
|
||||
|
||||
const plugins = [
|
||||
postcssImport(),
|
||||
postcssPresetEnv({
|
||||
stage: 1,
|
||||
features: {
|
||||
"nesting-rules": false,
|
||||
},
|
||||
"postcss-utilities": {},
|
||||
"postcss-nesting": {},
|
||||
cssnano:
|
||||
// eslint-disable-next-line no-undef
|
||||
process.env.NODE_ENV === "production" ? { preset: "advanced" } : false,
|
||||
},
|
||||
};
|
||||
}),
|
||||
postcssUtilities(),
|
||||
postcssNesting(),
|
||||
]
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
console.log("Adding PurgeCSS")
|
||||
plugins.push(
|
||||
purgeCSSPlugin({
|
||||
content: [
|
||||
"./src/**/*.{astro,html,js,jsx,ts,tsx}",
|
||||
"./content/**/*.{md,mdx}",
|
||||
],
|
||||
safelist: ["html", "body"],
|
||||
variables: true
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
export default {
|
||||
plugins
|
||||
}
|
||||
Reference in New Issue
Block a user