0

I try for the first time the Angular 2 CLI Tool and I want to know if there was a command to generate a single bundle.js file for an angular CLI project (also change the location of images and css to structure my project).

Structure when i create and config angular project

The problem is that I don't have access to the webpack.config. With an "ng eject" we get the file but we can no longer manage the project with the command line.

Someone knows if there is a command line or if there is a simplified webpack.config file that doesn't 400 line.

1
  • not possible with angular-cli, however, you can write a simple script to concatenate the js bundles into one. You can use native node api's or this: npmjs.com/package/concat-files Commented May 15, 2017 at 19:53

1 Answer 1

1

This has been talked about at lengths over on the CLI github.

As it stands the CLI team have decided to not expose the inner webpack.config.js.

However they have acknowledged the communities concerns for webpack customisation and will address it in the future.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.