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
{{ message }}
Repository navigation
styleUrls resolve issue (when building with AoT & have custom naming) #8829
The observed behavior is definitely incorrect. Out of curiosity, what is the use case for adding a .ts extension to the .css filename?
Also, to further investigate, what is the content of the file in question; or were no other changes done to the new project?
Hi @clydin, we use Visual Studio and it makes file nesting out of the box if one file name contains another file name. So there are two reasons why we want to keep such naming:
File nesting really helps us (and vs code doesn't have file nesting yet)
Code base is big and we don't want to change names to all files
content of css file is empty, no other changes are needed, right now I've tried in macOS and same issue:
For the record (i'm closing #8904): this happens with all files that require a loader.
i.e:
Does NOT happen on styleUrls with .ts.css files
DOES happen on templateUrl with .ts.pug files (if you use pug template files... i do)
And @clydin for me, i'm naming like that because .ts.pug & .ts.scss files pop below their .ts counterpart in vscode (sorted alphabetically).
And because I wanted to make sure that .scss & .pug files would nest under .ts when vscode will support file nesting (and not the other way around, as .ts is last in alphabetical order)
Full 1-click step to reproduce the issue:
ng new tsbug --style=scss
cd tsbug
mv src/app/app.component.scss src/app/app.component.ts.scss
sed -i 's/.scss/.ts.scss/g' src/app/app.component.ts
ng build --aot
Activity
clydin commentedon Dec 12, 2017
The observed behavior is definitely incorrect. Out of curiosity, what is the use case for adding a
.tsextension to the.cssfilename?Also, to further investigate, what is the content of the file in question; or were no other changes done to the new project?
playerx commentedon Dec 13, 2017
Hi @clydin, we use Visual Studio and it makes file nesting out of the box if one file name contains another file name. So there are two reasons why we want to keep such naming:
content of css file is empty, no other changes are needed, right now I've tried in macOS and same issue:
oguimbal commentedon Dec 18, 2017
For the record (i'm closing #8904): this happens with all files that require a loader.
i.e:
styleUrlswith .ts.css filestemplateUrlwith .ts.pug files (if you use pug template files... i do)And @clydin for me, i'm naming like that because .ts.pug & .ts.scss files pop below their .ts counterpart in vscode (sorted alphabetically).
And because I wanted to make sure that .scss & .pug files would nest under .ts when vscode will support file nesting (and not the other way around, as .ts is last in alphabetical order)
Full 1-click step to reproduce the issue:
pit1188 commentedon Mar 9, 2018
I have same problem and can't update my project to latest angular version. It will be perfect to fix this issue in 6.0
filipesilva commentedon Oct 8, 2019
Just tried with
app.component.ts.scssand it seems like the build finishes successfully now.angular-automatic-lock-bot commentedon Nov 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.