KaiHotz / react-rollup-boilerplate

Boilerplate for creating React component libraries, bundled with Rollup.js to ESM and/or CJS Modules, Storybook, Typescript

Home Page:https://kaihotz.github.io/react-rollup-boilerplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rollup how to deal with Less or css to a separate module folder

dalongjason opened this issue · comments

project structure

|-components
||-components1
|||-- index.less
|||-- index.js
||-components1
|||-- index.less
|||-- index.js
|-index.js
|- index.less

output

|-components
||-components1
|||-- index.css
|||-- index.js
||-components1
|||-- index.css
|||-- index.js
|-index.js
|- index.css

@dalongjason I'm sorry but i don't quite understand your question, if it is what i am thinking you might want to look into rollup.config.mjsa file and look at the options for the postcss plugin