Skip to content

Commit

Permalink
chore(11ty): no need for atImport PostCSS plugin anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Mar 3, 2022
1 parent 492db12 commit 2fef89b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 72 deletions.
4 changes: 2 additions & 2 deletions a11y.css.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const prism = require('prismjs')
const loadLanguages = require('prismjs/components/');
loadLanguages(['scss', 'css-extras']);
const postcss = require('postcss')
const atImport = require('postcss-import')
const uglify = require('uglify-es')
const autoprefixer = require('autoprefixer')
const cssnano = require('cssnano')

const DIRECTORIES = {
css: {
Expand Down Expand Up @@ -60,7 +60,7 @@ const parseAssets = () => {
const JS = fs.readFileSync(DIRECTORIES.assets.js.input + 'docs.js', 'utf8')

// Parse and write CSS output file
postcss([atImport, autoprefixer])
postcss([autoprefixer, cssnano])
.process(CSS, {
from: CSS_INPUT
})
Expand Down
69 changes: 0 additions & 69 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"front-matter": "^3.1.0",
"postcss": "^8.2.13",
"postcss-cli": "^9.0.1",
"postcss-import": "^12.0.1",
"prismjs": "^1.21.0",
"sass": "^1.43.3",
"showdown": "^1.9.0",
Expand Down

0 comments on commit 2fef89b

Please sign in to comment.