1.1.0 • Published 6 years ago
@considonet/postcss-config v1.1.0
@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.cssresetting styles. You can use@import-normalizeand@import-sanitizefor more styles. Read more here - postcss-easings
- postcss-preset-env with
stage: 0setting - postcss-flexbugs-fixes with default setup
Options
normalize(boolean, defaults totrue)If
true,postcss-normalizewill prependnormalize.cssstylesheet to your styles. Iffalsethe plugin will still be available, but without explicitly includednormalize.cssstyles (using@importor@import-normalizeat-rules) won't do anything.
Install
Using npm:
npm install --save-dev @considonet/postcss-configor using yarn:
yarn add @considonet/postcss-config --devUsage
In your postcss.config.js file add the plugin, for example:
module.exports = {
plugins: [ require("@considonet/postcss-config")({ normalize: false }) ]
}