stencil-postcss icon indicating copy to clipboard operation
stencil-postcss copied to clipboard

[Feature Request] Postcss external config file

Open sem4phor opened this issue 6 years ago • 2 comments

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 ?

sem4phor avatar Jan 02 '20 14:01 sem4phor

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.

splitinfinities avatar Sep 27 '21 19:09 splitinfinities

@sem4phor In your stencil.config.ts

import postcssConfig from './posstcss.config';

plugins: [stencilPostcss(postcssConfig)]

jared-christensen avatar Apr 25 '23 17:04 jared-christensen