Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I am working on angular 2 project. We can include css and js in angular-cli.json and we can also include it in index.html file.But which one is better and why ?
angular 2
css
js
angular-cli.json
index.html
You should always write it in angular-cli.json..!
Its a config file through which index.html will be populated based on your configs in angular-cli.json, which is managed by webpack.
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.