react-component-library icon indicating copy to clipboard operation
react-component-library copied to clipboard

[QUESTION] rollup-plugin-postcss plugin issues on code splitting

Open mnlbox opened this issue 5 years ago • 1 comments
trafficstars

Hi @HarveyD , Now I have to use both rollup-plugin-postcss and rollup-plugin-sass because of your guide in ReadMe because I need code splitting and a single bundle. What is your suggestion if I want just using one of these package rollup-plugin-postcss or rollup-plugin-sass? I see in the ReadMe you told:

Please note, there's an issue with code splitting and using rollup-plugin-postcss. I recommend using rollup-plugin-sass instead alongside code splitting.

Can you explain what is this issue exactly? Maybe we can find a solution for that. :wink:

mnlbox avatar Jul 23 '20 11:07 mnlbox

Maybe we can use https://github.com/Anidetrix/rollup-plugin-styles for both single bundle and multi bundle. I think using the same package for both branches is better approach :wink:

mnlbox avatar Jul 23 '20 11:07 mnlbox