Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Pack then import CSS from a local library (Angular)

Question
John Kumpf · Oct 16, 2019

Pack then import CSS from a local library (Angular)

Hi all,

This might be a stupid question, but I'm going to ask it anyway. 

My goal is to write a scss file, pack it as part of a local library (Something like my_library.tgz), npm install that library into a different project and then import that scss file in one of the scss files in the new project.

Simply having the scss file exist in the library before I pack it didn't seem to work; the file wasn't under node modules after the npm install.  Am I doing something wrong, or are there extra steps I have to take?

Thanks in advance.

(Also if my desired workflow isn't clear, or you think there's a better solution, definitely let me know)

#Angular #Angular2 #CSS #Other

Source URL:https://community.intersystems.com/post/pack-then-import-css-local-library-angular