@considonet/postcss-config
v1.1.0
Published
Default opinionated PostCSS preset for ConsidoNet projects
Downloads
2
Readme
@considonet/postcss-config
Default opinionated PostCSS preset for ConsidoNet projects
What is this?
This config was created to provide a common PostCSS setup for ConsidoNet projects. Included plugins:
- postcss-normalize - this forcibly includes
normalize.css
resetting styles. You can use@import-normalize
and@import-sanitize
for more styles. Read more here - postcss-easings
- postcss-preset-env with
stage: 0
setting - postcss-flexbugs-fixes with default setup
Options
normalize
(boolean, defaults totrue
)If
true
,postcss-normalize
will prependnormalize.css
stylesheet to your styles. Iffalse
the plugin will still be available, but without explicitly includednormalize.css
styles (using@import
or@import-normalize
at-rules) won't do anything.
Install
Using npm:
npm install --save-dev @considonet/postcss-config
or using yarn:
yarn add @considonet/postcss-config --dev
Usage
In your postcss.config.js file add the plugin, for example:
module.exports = {
plugins: [ require("@considonet/postcss-config")({ normalize: false }) ]
}