@freshie/plugin.postcss
(no description)
#Install
$ npm install --save-dev postcss @freshie/plugin.postcss
Optional
Additional modules that, if installed,
@freshie/plugin.postcsswill attach.
$ npm install --save-dev autoprefixer cssnano
#Preprocessors
Note: Only
stylusis supported right now.
Bring your desired preprocessor flavor, if any~!
Simply install the preprocessor itself; for example:
$ npm install --save-dev stylus
In most cases, that's all you need to do – @freshie/plugin.postcss will invoke the preprocessor when its extension(s) is/are detected. However, should you need to send the preprocessor some configuration, modify its configuration key within your freshie.config.js file; for example:
// freshie.config.js
exports.stylus = {
// custom options
}
Direct Usage
If you are using this plugin directly (AKA, you are not using freshie), you may define preprocessor configuration via plugin options:
// rollup.config.js
import Postcss from '@freshie/plugin.postcss';
export default {
// ...
plugins: [
Postcss({
stylus: {
// custom options
}
})
]
}
See also
@freshie/plugin.babel(3), @freshie/plugin.esbuild(3), @freshie/plugin.typescript(3), @freshie/ssr.node(3), @freshie/ssr.worker(3), @freshie/ui.preact(3), @freshie/ui.svelte(3), freshie(3), create-worktop(3), tsm(3)