wuruoyun / vue-component-lib-starter

A bare-bones example of creating your own Vue component library.
313 stars 59 forks source link

Postcss plugins not running? #33

Closed khusseini closed 2 years ago

khusseini commented 2 years ago

I am not sure if this is a problem with Vite or with this starter or with my implementation (latter is most probably the reason). Vite says that is automatically reads a postcss.config.js and would apply it to the build process. I added the following to the project:

postcss.config.js

module.exports = {
    plugins: {
        'postcss-combine-media-query': {},
        'postcss-combine-duplicated-selectors': {
        },
    }
}

when I open the ./dist/style.css I see that I have some duplicated selectors and media queries. any idea what I am doing wrong here?

khusseini commented 2 years ago

I have posted this question in vite discussion https://github.com/vitejs/vite/discussions/8693