-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: upgrade to ngc-webpack 1.1.0 (#1344)
- Loading branch information
1 parent
cb49bb5
commit 5d85631
Showing
3 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5d85631
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It breaks images in *.html, e.g.:
<img src="../../images/fullscreen-back2.jpg">
The href is generated fine but the image is not copied to the "dist" directory.
Keeping only the ngc-webpack version change everything is back to normal.
5d85631
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
resourceOverride
feature is used to replace the html and css imports in@Component
metadata with empty js files.The reason to do so is because it is redundant data, it is not being used at runtime anyway since the AOT compiler creates a separate version of it.
If you have a complex setup and you reference images from within a component css then you might run into issues.
I havent checked that deeply, but you can remove this feature for now and you won't have issues.
5d85631
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Track shlomiassaf/ngc-webpack#4 for a version with a fix.