we have a need to apply the autoprefixer plugin to all css output files, but then apply the rtlcss postcss plugin to only our app-rtl.css file. Is there a way to configure ember-cli-postcss to do that? It seems like the filter will apply all plugins to all files.
we're coming to this plugin from ember-cli-css-preprocess and you passed that an array of processor configurations, each being roughly equivalent to this addon's filter, so we were able to achieve this by passing multple processors like:
{
type: 'postcss',
// only run this for the -rtl file...
filter: ['app-rtl.scss'],
plugins: [
{
module: require('rtlcss'),
options: {}
}
]
},
{
type: 'postcss',
plugins: [
{
module: require('autoprefixer'),
}
]
}
With this addon it looks like you can only configure one filter and all the plugins you define in that filter are applied to all the files it matches.
Is there some way to conditionally apply a plugin to a specific set of files?
we have a need to apply the autoprefixer plugin to all css output files, but then apply the rtlcss postcss plugin to only our app-rtl.css file. Is there a way to configure ember-cli-postcss to do that? It seems like the
filterwill apply allpluginsto all files.we're coming to this plugin from ember-cli-css-preprocess and you passed that an array of processor configurations, each being roughly equivalent to this addon's
filter, so we were able to achieve this by passing multpleprocessorslike:With this addon it looks like you can only configure one
filterand all the plugins you define in that filter are applied to all the files it matches.Is there some way to conditionally apply a plugin to a specific set of files?