-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed as not planned
Closed as not planned
Copy link
Labels
area: @angular-devkit/build-angularfeatureIssue that requests a new featureIssue that requests a new featurefeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsLabel to add when the not a sufficient number of votes or comments from unique authors
Description
🚀 Feature request
Command (mark with an x
)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Description
Ability to build app as a single bundle.
Describe the solution you'd like
angular.json: projects -> "project-name" -> architect -> build -> Configuration: (new Options to bundling the js as single output)
. .
"architect": {
"build": {
"options": {
"scripts": [
{
"input": "custom-script1.js",
"bundleName": "my-custom-script1"
},
{
"input": "custom-script2.js",
"bundleName": "my-custom-script2"
}
]
},
"configuration" : {
"production" : {
"singleBundle": {
"path": "dist/project-name/"
"name": "single-bundle" <<---<<< // Single js bundle contains (runtime.js, main.js, polyfills.js, custom-script1.js, custom-script2.js)
}
}
}
}
. . .
Usage:
ng build project-name
Output expected:
- Dist folder
dist/single-bundle.js dist/runtime.js dist/main.js dist/polyfill.js index.html . . .
- Index.html to include the
single-bundle.js
<script src="single-bundle.js" type="module"></script>
Describe alternatives you've considered
- ngx-build-plus does provide the ability to build as a single file. It would be nice if angular devkit can provide this.
eneajaho, daniel-brenot-apcapital, fatters, bboehm86, dinbtechit and 3 more
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/build-angularfeatureIssue that requests a new featureIssue that requests a new featurefeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsLabel to add when the not a sufficient number of votes or comments from unique authors