stencil-community / stencil-postcss

Autoprefixer plugin for Stencil
https://www.npmjs.com/package/@stencil-community/postcss
Other
30 stars 24 forks source link

[Feature Request] Postcss external config file #21

Open sem4phor opened 4 years ago

sem4phor commented 4 years ago

Hello,

I built a project using stencil and next to the stencil components i have multiple css files i am processing with postcss-cli.

Because I want to use the same postcss plugins for the components css and the other css files, I have duplicate configuration. One in my postcss.config.js and the other in stencil.config.js

It would be great if stencil-postcss would make use of the plugins section from all the possbile postcss config files. I think this PR https://github.com/ionic-team/stencil-postcss/pull/14 is related to this.

Maybe this can archived through something like this: https://github.com/egoist/rollup-plugin-postcss ?

splitinfinities commented 2 years ago

Hey there, thank you for the patience getting back to you. The new team is getting started and we're working through the backlog now. Going to take a peek at this and circle back.

jared-christensen commented 1 year ago

@sem4phor In your stencil.config.ts

import postcssConfig from './posstcss.config';

plugins: [stencilPostcss(postcssConfig)]