Update example on how to package lib SCSS in ng v6
See original GitHub issueType of Issue
Is it possible to generate css from scss in a new library project? The new angular.json file & recent cli packagr integration could perhaps expand on styling.
Is sass-bundle the way to do this? #273 How would we hook this into new project format?
Angular CLI docs on this doesn’t seem to work either.
I’m sure you’re in the process of pushing a final bits out, and docs take a backseat, but I think this is something many issues relate to, a comprehensive guide on how to integrate styles and possibly re-package them in a library so it’s emitted as a unified some-theme.css.
In my case specifically, we’re tweaking bootstrap to match our theme as well as various custom & re-wrapped components and styling is a big part of all this.
Thank you
[ ] Bug Report
[X ] Feature Request
Version Information
$ node_modules/.bin/ng-packagr --version
ng-packagr: 3.0.0-rc2
@angular/*: 6.0.0
typescript: 2.7.2
Please include all version numbers that might be relevant, e.g. third-party libraries
Issue Analytics
- State:
- Created 5 years ago
- Reactions:19
- Comments:14 (2 by maintainers)
Top GitHub Comments
I dislike these solutions involving a post build step. None of this can be applied when using
ng build --watch=true
Developer workflow with HMR goodness is lost. We need a built-in way to copy scss to dist without the post build hack.This doesn’t help with the angular/cli tho which I guess @tomgruszowski meant. Im also looking for a way to expose SCSS without having to extend
@angular-devkit/build-ng-packagr:build
or having another script to be executed afterng build <library> --prod