1.0.13 • Published 3 years ago
@fiizy/postcss v1.0.13
fiizy postcss
Bundle of all postcss plugins used in Fiizy.
Included plugins
- postcss-import https://github.com/postcss/postcss-import
- postcss-mixins https://github.com/postcss/postcss-mixins
- postcss-simple-vars https://github.com/postcss/postcss-simple-vars
- postcss-conditionals https://github.com/andyjansson/postcss-conditionals
- postcss-nested https://github.com/postcss/postcss-nested
- autoprefixer https://github.com/postcss/autoprefixer
- postcss-color-function https://github.com/postcss/postcss-color-function
- postcss-merge-rules https://github.com/ben-eb/postcss-merge-rules
- postcss-discard-comments https://github.com/ben-eb/postcss-discard-comments
Installation
npm install @fiizy/postcss
Usage with Webpack (ver. > 2)
import fiizyPostCss from '@fiizy/postcss';
// style loader
{
test: /\.css$/,
loader: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [
{
loader: 'css-loader?minimize'
},
{
loader: 'postcss-loader',
options: {plugins: () => {
return [fiizyPostCss()];
}}
}
]
})
}