mirror of
https://github.com/jenil/chota.git
synced 2023-08-10 21:13:07 +03:00
Add variants with 100% root font size and rem values * 1.6
This commit is contained in:
parent
895bb72c1e
commit
9f2b81bf65
@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"start": "run-p docs watch",
|
||||
"docs": "jekyll s -s docs",
|
||||
"build": "rimraf dist/* && yarn postcss && cross-env NODE_ENV=production yarn postcss --ext .min.css && gzip -c dist/chota.min.css | wc -c | xargs echo 'Size:'",
|
||||
"build": "rimraf dist/* && yarn postcss && cross-env VARIANT=100 yarn postcss --ext .100.css && cross-env VARIANT=100 NODE_ENV=production yarn postcss --ext .100.min.css && cross-env NODE_ENV=production yarn postcss --ext .min.css && gzip -c dist/chota.min.css | wc -c | xargs echo 'Size:'",
|
||||
"postcss": "postcss ./src/chota.css -d dist/",
|
||||
"watch": "cross-env NODE_ENV=development yarn postcss -w",
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
@ -32,9 +32,11 @@
|
||||
"cross-env": "^7.0.2",
|
||||
"cssnano": "^4.1.7",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss-cli": "^7.1.1",
|
||||
"postcss": "^8.4.6",
|
||||
"postcss-cli": "^9.1.0",
|
||||
"postcss-csso": "^4.0.0",
|
||||
"postcss-import": "^12.0.1",
|
||||
"postcss-revert-rem-size": "^0.2.0",
|
||||
"rimraf": "^3.0.0"
|
||||
},
|
||||
"files": [
|
||||
|
@ -11,6 +11,11 @@ if (process.env.NODE_ENV == "production")
|
||||
})
|
||||
);
|
||||
|
||||
if (process.env.VARIANT == "100")
|
||||
plugins.push(
|
||||
require("postcss-revert-rem-size")({})
|
||||
);
|
||||
|
||||
module.exports = {
|
||||
plugins
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user