Skip to content

Commit

Permalink
fix: minify CSS and ignore deprecation warnings from stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
trovster committed Aug 20, 2024
1 parent f26aafa commit 262a0a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"scripts": {
"clean": "rm -rf dist",
"11ty": "npx @11ty/eleventy",
"11ty": "npx @11ty/eleventy $npm_config_pathprefix",
"css": "npx postcss ./src/_assets/css/site.css -o ./dist/css/site.css",
"start": "npm run 11ty -- --serve --quiet & npm run css -- --watch",
"prebuild": "npm run clean",
Expand All @@ -47,6 +47,7 @@
"postcss": "^8.4.38",
"postcss-cli": "^11.0.0",
"postcss-import": "^16.1.0",
"cssnano": "^7.0.5",
"standard": "^17.1.0",
"stylelint": "^16.6.1",
"stylelint-config-standard": "^36.0.0"
Expand Down
7 changes: 5 additions & 2 deletions postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ module.exports = {
plugins: [
require('postcss-import')({
plugins: [
require('stylelint')
require('stylelint')({
quietDeprecationWarnings: true
})
]
}),
require('autoprefixer')
require('autoprefixer'),
require('cssnano')
]
}

0 comments on commit 262a0a6

Please sign in to comment.