Looking for the proper way of constructing my projects.

I decided to use one project per web part however is have a number of classes and react components that are common to all projects. So I created a library project and moved my common classes there. I used npm link to link both projects and all seems to be working well.

My question is around SCSS files. Again I have a few that are common across all web-parts. I know I can use the CDN to serve these files but I was wondering if I could use my current library project.

If so, How do I "export" the SCSS as I do my ts and tsx files in the index.js?

Any help is greatly appreciated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.