You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm submitting a ...
[ ] bug report
[x] feature request
[ ] question about the decisions made in the repository
Do you want to request a feature or report a bug?
Feature Request
What is the current behavior?
Import statements in entry points for CSS and SASS are not currently working,
What is the expected behavior?
Adding an Import statement in any of the entry points (IE Vendor) for a SASS (.scss) or a CSS (.css) file should result in that stylesheet being bundled into the global css for the application.
What is the motivation / use case for changing the behavior?
Some modules, such as Bootstrap V4, require stylesheets to be imported into the application to enable certain features, such as the flex grid. There are current workarounds in place, but they are bulky and bloated. This method of importing stylesheets used to work in the original builds of this seed project.*
Using the following loaders in the mean time, no guarantee they will work in everyone's case, but they provide the temporary fix until we can get some vetted support for this.
On Dec 28, 2016, at 3:17 AM, David A. Lee ***@***.***> wrote:
@shlomiassaf I'm having issues with importing global styles into the vendor bundle
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
For all those in this thread, the proposed solution is outline in the PR #1304 from @colinskow. If you want a say in how this is implemented, now would be the time to do so. If nobody objects, i'll be landing that by e.o.d
#1304 Does not provide the loader for SASS files in test environments. Other than that, the PR takes care of the issue in the current version of the repo.
Generally Karma doesn't need external stylesheets, and unit tests probably shouldn't be dependent on them. So I purposely left it out of the test config. Tests will launch faster.
Unit test definitely shouldn't be dependent on style sheets any more than they should depend on data. @colinskow is correct in his test implementation.
Karma will not launch without error unless I add a null loader for SASS in my environment. The purpose is not to incorporate them but to ensure that the file types will be handled appropriately when encountered.
Activity
Daeluse commentedon Oct 24, 2016
Using the following loaders in the mean time, no guarantee they will work in everyone's case, but they provide the temporary fix until we can get some vetted support for this.
davidalee commentedon Dec 27, 2016
Any reason why importing css/scss files worked in previous builds but is no longer working in the current build?
shlomiassaf commentedon Dec 28, 2016
@davidalee Works for me...
Component resources does not work with AOT (styleUrls, templateUrl) since they don't go through the loader chain.
It will be fixed in a short period I believe.
davidalee commentedon Dec 28, 2016
@shlomiassaf I'm having issues with importing global styles into the vendor bundle
shlomiassaf commentedon Dec 28, 2016
joshwiens commentedon Dec 28, 2016
See #1304
davidalee commentedon Dec 28, 2016
#1304 resolves this issue for me
joshwiens commentedon Dec 28, 2016
For all those in this thread, the proposed solution is outline in the PR #1304 from @colinskow. If you want a say in how this is implemented, now would be the time to do so. If nobody objects, i'll be landing that by e.o.d
Daeluse commentedon Dec 28, 2016
#1304 Does not provide the loader for SASS files in test environments. Other than that, the PR takes care of the issue in the current version of the repo.
colinskow commentedon Dec 28, 2016
Generally Karma doesn't need external stylesheets, and unit tests probably shouldn't be dependent on them. So I purposely left it out of the test config. Tests will launch faster.
joshwiens commentedon Dec 28, 2016
Unit test definitely shouldn't be dependent on style sheets any more than they should depend on data. @colinskow is correct in his test implementation.
Daeluse commentedon Dec 28, 2016
Karma will not launch without error unless I add a null loader for SASS in my environment. The purpose is not to incorporate them but to ensure that the file types will be handled appropriately when encountered.