Closed wangzhenxi closed 5 years ago
@Joshwoooooooooooooooooooooooooooooooong we've added exclude
option ( thanks to @msidolphin ), where you can add paths as RegExp you want to exclude.
For example, in your postcss.config.js
:
module.exports = {
plugins: {
...
'postcss-px-to-viewport': {
exclude: [/node_modules/]
}
}
}
How to filter out an npm package, such as react-responsive-carousel
?
@fengyun2 may be something like
module.exports = {
plugins: {
...
'postcss-px-to-viewport': {
exclude: [/node_modules\/(?!react\-responsive\-carousel)/]
}
}
}
@chernobelenkiy is there any way to exclude one line in css? like adding /* none */
comment or something?
I want the plugin just compile the folder './src', do not compile the folder './node_modules', because my ui component is not use same reference dimension, how should I do ?