-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
index.html usemin {.tmp,app} css hint causes duplicate styles in dist/styles/main.css #662
Comments
Oh thats right, same here.
This should fix it correctly. |
Does the (.tmp) need to be supplied explicitly? There is not one for the preceding vendor.css build hints and it seems to pick those up without specifying (.tmp). Am I not understanding something? Or by default does that pull from app/styles instead of .tmp/styles, since custom main.css might need further processing from .tmp and it doesn't matter for vendor side (and copying from app/styles is fine)? |
Yes, by default it will pick up your styles from app/styles, when you want to use the autoprefixer you must specify the (.tmp). |
I don't see the styles being duplicated anywhere. Can you give an example? |
@eddiemonge you could easily reproduce the problem doing the following steps:
Hope this help to merge the pull request with the fix 😄 |
Please help to verify the fixes resolve the issues you have been having. You will need to test using the latest git code. Here are the instructions on how to do that:
Let me know if you have any issues by replying here or opening a new issue. |
Fix handling of Bootstrap fonts. This correctly loads the fonts in `grunt serve` as well as `grunt serve:dist`. This should hopefully close all the PR's and issues related to Bootstrap fonts. Also removes styles being duplicated in a the output CSS file. This includes a potentially breaking change in that `root` of **cssmin** has been reverted (removed). Closes yeoman#552 Fixes yeoman#638 Fixes yeoman#645 Closes yeoman#661 Fixes yeoman#662 Partially closes yeoman#664 Fixes yeoman#665 Fixes yeoman#667
In
generator-angular / templates / common / index.html
The
{.tmp,app}
part causes the resultingdist/styles/<hash>.main.css
to be completely duplicated within itself. Works fine usingThe text was updated successfully, but these errors were encountered: