postcss / postcss.org

Official website for PostCSS
https://postcss.org
MIT License
81 stars 50 forks source link

Move to Vite #266

Closed ai closed 2 years ago

ai commented 2 years ago

Vite node_modules footprint is smaller and performance is better.

TheSeally commented 2 years ago

@ai I I started migrating to vite, but found problem. For now postcs.org inline all styles into html. Vite inline styles only in serve mode. When I build project it inject style via link tag.

Is inline style used to optimize loading? Or we can inject styles via link tag?

Anyway, I continue to explore the possibility of inlining styles

ai commented 2 years ago

Yeap, it is an optimization, but we can avoid it

sult4novars commented 2 years ago

@ai hi! I have created pr for this issue. Please review it https://github.com/postcss/postcss.org/pull/270