-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Feature Request] Stylesheet Vendor Imports #1122
Comments
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.
|
Any reason why importing css/scss files worked in previous builds but is no longer working in the current build? |
@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. |
@shlomiassaf I'm having issues with importing global styles into the vendor bundle |
Vendor bundle was removed...
…Sent from my iPhone
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.
|
See #1304 |
#1304 resolves this issue for me |
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. |
[ ] bug report
[x] feature request
[ ] question about the decisions made in the repository
Feature Request
Import statements in entry points for CSS and SASS are not currently working,
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.
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.*
The text was updated successfully, but these errors were encountered: