0

When building an application with angular-cli, it creates a dist folder with four bundled files (polyfills.bundle.js, main.bundle.js, vendor.bundle.js and inline.bundle.js) in its root.

Is it possible to indicate another folder ONLY for these files (e.g. dist/deps/ instead of dist/)?

3
  • Read the docs: github.com/angular/angular-cli/wiki/build Commented Aug 3, 2017 at 11:26
  • @jonrsharpe Thanks but I couldn't find an answer to my question! Commented Aug 3, 2017 at 11:53
  • The answer is still in the docs, it's just: no. You may be able to ng eject to get enough control of the config, but you can't do what you describe within the options the CLI exposes. Commented Aug 3, 2017 at 11:55

1 Answer 1

2

If you want to change the output directory from 'dist' to somewhere else, you can do so by changing outDir in the .angular-cli.json

"apps": [
    {
      "root": "src",
      "outDir": "dist/deps",
Sign up to request clarification or add additional context in comments.

1 Comment

outDir will put everything in the folder... I want ONLY the bundled files (the 4 files I mention in my question)

Your Answer

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.

Ask question

Explore related questions

See similar questions with these tags.