cssnano for smaller style output
This commit is contained in:
parent
04a0a362ef
commit
d1f3b392a6
3 changed files with 3588 additions and 2 deletions
3584
package-lock.json
generated
3584
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -24,6 +24,7 @@
|
||||||
"@11ty/eleventy": "^0.11.1",
|
"@11ty/eleventy": "^0.11.1",
|
||||||
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.6",
|
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.6",
|
||||||
"autoprefixer": "^10.2.4",
|
"autoprefixer": "^10.2.4",
|
||||||
|
"cssnano": "^4.1.10",
|
||||||
"nunjucks-date": "^1.5.0",
|
"nunjucks-date": "^1.5.0",
|
||||||
"postcss": "^8.2.4",
|
"postcss": "^8.2.4",
|
||||||
"postcss-cli": "^8.3.1",
|
"postcss-cli": "^8.3.1",
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
module.exports = {
|
module.exports = (ctx) => ({
|
||||||
plugins: {
|
plugins: {
|
||||||
tailwindcss: {},
|
tailwindcss: {},
|
||||||
autoprefixer: {},
|
autoprefixer: {},
|
||||||
|
cssnano: ctx.env === 'production' ? {} : false,
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue