Closed santam85 closed 2 years ago
LGTM!
Released as 0.30.1
, please let me know if that works for you! 🙌
Yup thanks, works perfectly!
Hello @santam85 & @mattlewis92
i was using this in v0.28.28
: @import '~angular-calendar/scss/angular-calendar.scss';
, but it's not working in v0.31.1
any idea why ?
Hello @santam85 & @mattlewis92 i was using this in
v0.28.28
:@import '~angular-calendar/scss/angular-calendar.scss';
, but it's not working inv0.31.1
any idea why ?
I think it's because angular dropped support for the leading ~
, try @import 'angular-calendar/scss/angular-calendar.scss';
instead
it works, Thank you for the quick response
This change would allow importing the sass files in Angular projects in the following fashion:
@import "~angular-calendar/scss/angular-calendar";
That is beneficial for plugins trying to find the critical path CSS, and allows to avoid having to hardcode a relative path to thenode_module
, simplifying adoption in monorepos with multiple projects.Fixes #1596 and errors like:
Alternatively, this can be extended to all scss files by adding instead:
EDIT After some research and testing, I updated the PR to use the alternative approach shown above, looks like it's the one that has the best compatibility.