diff --git a/a11y.css.js b/a11y.css.js index 930bd858..ac58c3b3 100644 --- a/a11y.css.js +++ b/a11y.css.js @@ -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: { @@ -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 }) diff --git a/package-lock.json b/package-lock.json index 54c7c7d2..22ac48b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,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", @@ -4161,44 +4160,6 @@ "postcss": "^8.2.15" } }, - "node_modules/postcss-import": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-12.0.1.tgz", - "integrity": "sha512-3Gti33dmCjyKBgimqGxL3vcV8w9+bsHwO5UrBawp796+jdardbcFl4RP5w/76BwNL7aGzpKstIfF9I+kdE8pTw==", - "dev": true, - "dependencies": { - "postcss": "^7.0.1", - "postcss-value-parser": "^3.2.3", - "read-cache": "^1.0.0", - "resolve": "^1.1.7" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-import/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-import/node_modules/postcss-value-parser": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", - "dev": true - }, "node_modules/postcss-load-config": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.0.tgz", @@ -10123,36 +10084,6 @@ "dev": true, "requires": {} }, - "postcss-import": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-12.0.1.tgz", - "integrity": "sha512-3Gti33dmCjyKBgimqGxL3vcV8w9+bsHwO5UrBawp796+jdardbcFl4RP5w/76BwNL7aGzpKstIfF9I+kdE8pTw==", - "dev": true, - "requires": { - "postcss": "^7.0.1", - "postcss-value-parser": "^3.2.3", - "read-cache": "^1.0.0", - "resolve": "^1.1.7" - }, - "dependencies": { - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "postcss-value-parser": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", - "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", - "dev": true - } - } - }, "postcss-load-config": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.0.tgz", diff --git a/package.json b/package.json index d35c0554..9f889d1f 100644 --- a/package.json +++ b/package.json @@ -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",