mirror of
https://github.com/zhigang1992/postcss-partial-process.git
synced 2026-01-12 09:14:20 +08:00
a174b8a747d814cfea56446a403e197e0878c83e
PostCSS Partial Process [![Build Status][ci-img]][ci]
PostCSS plugin that runs other plugins on parts of a CSS file delimited by comments.
Usage
postcss([ require('postcss-partial-process')({
startComment: 'start postcss-partial-process', // default value
endComment: 'end postcss-partial-process', // default value
removeComments: true, // false by default
plugins = [
require('[any postcss plugin you want]'), // this will only affect the CSS between the comments "start postcss-partial-process" and "end postcss-partial-process"
],
}) ])
See PostCSS docs for examples for your environment.
Languages
JavaScript
100%