Comments (5)
Would this take into account development versus production environments? I'm a fan of the grunt-usemin, rails, or sails methods of doing this.
/* build dist/app.js */
file1.js
file2.js
file3.js
file4.js
/* endbuild */
Development would load all of this and prevent the need for source maps. Production then could add another step to concat, minify, and sourcemap.
from angular-cli.
File concatenation is an HTTP/2 anti-pattern, see https://docs.google.com/presentation/d/1r7QXGYOLCh4fcUq0jDdDwKJWNqWK1o4xMtYpKZCJYjM/edit. Angular 2 being future-oriented by nature, we should lean towards first class H2 support (which already has 70% browser support), namely no more file concatenation but rather building a depCache. Additionally production file names should be versioned with the file content hashes in order to allow long-life cache headers.
from angular-cli.
The vendor part of this issue seems to have been addressed via #163
from angular-cli.
Closing this. We will address this in the production environment build. Having different files for development is expected and makes the whole development process faster.
Please note that without a production build, the CLI is only useful for local development right now.
from angular-cli.
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.
from angular-cli.
Related Issues (20)
- [browser-esbuild] live-reload=false workflow is less convenient now
- Excessive modulepreload Links in Angular 18.0.0-next.4 Affecting Performance Metrics HOT 5
- Bug: esbuild builder 3rd party libs built not properly with browserify paths HOT 1
- Only reload on ng serve when change in code happen HOT 3
- Ability to generate hash on every build without changing file HOT 1
- sourcemap isn't working HOT 2
- support npm version 1- HOT 1
- CSS background-image: url() not working for relative paths in Angular library project HOT 1
- [reopen] [proposal] auto polyfilling support via @babel/preset-env HOT 1
- Newly added assets are not served by the development server HOT 1
- host property of the compoments not providing typings intellisense and also class applied to it not getting processed by tailwindcss HOT 1
- Script tags are not added to the child pages when build SSR project HOT 1
- IWAs (Isolated Web Apps) integration proposal
- Styles optimization option - "removeSpecialComments" is not working HOT 5
- Failed to read Git tree: fatal: not a git repository (or any of the parent directories): .git HOT 9
- Server Actions HOT 1
- ng commands hangs on node version v20.12.2 HOT 8
- importmap with ssr HOT 1
- Vite dev server with npm workspaces not reloading on project reference update HOT 1
- angular report server dependencies as not esm HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-cli.