variabless icon indicating copy to clipboard operation
variabless copied to clipboard

Watch other files that is importing in main file (webpack)

Open gabrielpapke opened this issue 4 years ago • 1 comments

Hello, first congrats and thanks for the project.

I'm separating files like: theme1.ts, theme2.ts, and importing in theme.ts, using import Theme1 from 'theme1', which theme1.ts has an exported object that contains the definitions from the theme using the rules.

When I import the objects from other file to increment the main object (theme.ts), the css file doesn't update with the changes. If I use only file that is defined in srcPath, that's works.

How can i do this? Using separate files for a better architecture and watching the changes.

Thanks!!

gabrielpapke avatar Aug 05 '21 15:08 gabrielpapke

I think we only listen for changes in the src path. We can add multiple path support, or be smarter. @shaharkazaz

NetanelBasal avatar Aug 05 '21 15:08 NetanelBasal