-
Notifications
You must be signed in to change notification settings - Fork 12k
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
How to sort output chunks, font and other files in appropiate directories #6315
Comments
It'd be handy if .angular-cli.json has the option to sort filechunks. For example the angular-cli.json could look like this: -- |
I need this feature also. |
@benpoe Anything you have in |
@sumitarora I'm not talking about static files. I'm talking about fonts and sass files referenced in node_modules and js compiled from the ts-files. These are all placed in the directory root. |
I need this feature too. It would be nice to be able to tell cli build to put inside dist folder
|
Would it be nice to have webpack 'limit' option which was handy to bundle everything less than 10k into CSS in previous versions of CLI? If no, could please somebody be so kind to explain what was fundamentally wrong with it (I see the comment #12731 (comment) saying that it was by design to stop this bundling)? |
This would be a nice feature to able to have some control of how the paths and destinations where the different image files are copied. Or if it’s possible not move anything just change the relative domain paths to images etc in the generated css files. We are trying to upgrade our solution from Angular 6 to 7, but removal of inline svg is making a harder for us to move to Angular 7. The solution was original a asp.net mvc application with a lot of css,images etc. We are not using the generated html file but a asp.net view. [edit] I kinda made it work by overriding the postcssPluginCreatore and changing the PostcssCliResources filename property with some custom path matching the rout in mvc. [path] flag took forever to build, but a static folder name worked. Could it be a idea to create a setting in the angular.json file so that a user could add some path, that could be concatenated into the filename property used by the PostcssCliResources. We ended up changing the dest to a folder that matched the controller with our Angular view. |
@gaotter you can currently have control over this feature if you customize your build with ngx-build-plus or alternative tools which let you plug into the webpack configuration. Customizability of the output directory is outside the scope of the project but we will consider improving the output directory layout. Thanks for pointing this out! |
PR #12967 introduces |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.0.1
node: 7.7.2
os: win32 x64
@angular/animations: 4.1.0
@angular/common: 4.1.0
@angular/compiler: 4.1.0
@angular/core: 4.1.0
@angular/forms: 4.1.0
@angular/http: 4.1.0
@angular/platform-browser: 4.1.0
@angular/platform-browser-dynamic: 4.1.0
@angular/platform-server: 4.1.0
@angular/router: 4.1.0
@angular/cli: 1.0.1
@angular/compiler-cli: 4.1.0
Repro steps.
npm run build:prod:aot
The log given by the failure.
none
Desired functionality.
When doing a "npm run build" all js-chunks, bundles, fonts are thrown into the "dist"-directory.
Using webpack I'd have sorted them into appropiate directories. js in "js", fonts in "fonts" etc.
It'd be great if angular-cli would have an option to configure the output too.
The text was updated successfully, but these errors were encountered: