Skip to content

ng init creates a styles.css #2959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BenjaminHofstetter opened this issue Oct 31, 2016 · 5 comments
Closed

ng init creates a styles.css #2959

BenjaminHofstetter opened this issue Oct 31, 2016 · 5 comments
Labels
P5 The team acknowledges the request but does not plan to address it, it remains open for discussion type: bug/fix

Comments

@BenjaminHofstetter
Copy link

OS?

Mac OSX El Capitan

Versions.

angular-cli: 1.0.0-beta.19-3
node: 6.9.1
os: darwin x64

Repro steps.

this is an angular cli project

The log given by the failure.

I did an update of angular cli

rm -rf node_modules dist tmp
npm install --save-dev angular-cli@latest
npm install
ng init

I am using a src/styles.scss instead of a src/styles.css. 'ng init' creates a new src/styles.css file. And I have to remove it manually every time I do an angular cli update.

Is it possible to check the app.styles array in angular-cli.json to avoid the creation of the src/styles.css during 'ng init'?

@Meligy
Copy link
Contributor

Meligy commented Oct 31, 2016

Did you tell it not to override angular-cli.json?

If yes, then it can be considered a bug.

It's probably by design though. I expect that it doesn't respect angular-cli.json because it generates it!

I always run ng init --style=scss --routing when I'm upgrading Angular CLI. I even made it an NPM script, called it reset.

@BenjaminHofstetter
Copy link
Author

I told it not to override angular-cli.json.

@filipesilva
Copy link
Contributor

It's a bug. We don't ready the current angular-cli.json when doing init.

@filipesilva filipesilva added type: bug/fix command: new P5 The team acknowledges the request but does not plan to address it, it remains open for discussion labels Nov 3, 2016
@sumitarora
Copy link
Contributor

Closing as obsolete ng init is no longer available command.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
clydin pushed a commit to clydin/angular-cli that referenced this issue Aug 29, 2023
…-server

With this change we disable the bundle budgets when using the dev-server as extra JavaScript for live-reloading will be added which could cause budgets to fail.

Closes: angular#2959
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P5 The team acknowledges the request but does not plan to address it, it remains open for discussion type: bug/fix
Projects
None yet
Development

No branches or pull requests

5 participants