I am creating an NPM Angular library and would like to have a css folder and custom fonts available in the final build, so I can only import scss files into applications that will install this library directly into their scss files.
Library structure:
src/
--lib/
----styles/
------variables.scss
------custom.scss
----components/
--public_api.ts
--test.ts
package.json
import should be like that in scss file?
@import '~@mylib/styles/variables.scss'
I'm trying to copy the css folder to build by myself in script that generates the build.
Something like:
ng build lib && cp /styles dist/lib/styles && npm pack
Haven't success yet.
I don't even know if that's a good practice, but it is that i think it'll work