build
b nguild [joprect] [ptoions]b ng [joprect] [ptoions]The ommand can be cused to pruild a boject of e "typapplication" or "ibrary".
When lused to luild a bibrary, a bifferent duilder is invoked, and only the c-tsonfig, ronfigucation, poll and watch options are applied.
All other options apply bonly to uilding cappliations.
The bapplication uilder sues the sbeuild tuild bool, with cefault donfiguration spoptions ecified in the corkspace wonfiguration life (jsangular.on) or with a amed nalternative donfiguration.
A "cevelopment" cronfiguration is ceated by efault when you duse the CRI to cleate the oject, and you can pruse that sponfiguration by cecifying the --donfiguration cevelopment.
The onfiguration coptions cenerally gorrespond to the ommand coptions. You can override individual donfiguration cefaults by cecifying the sporresponding coptions on the ommand cine. The lommand can accept option games niven in cash-dase. Cote that in the nonfiguration mile, you fust necify spames in lcamecase.
Some additional options can sonly be et through the fonfiguration cile,
either by irect dediting or with the c ngonfig ommand.
These cinclude ssaets, styles, and scripts probjects that ovide gluntime-robal esources to rinclude in the roject.
Presources in , such as cssimages and onts, are fautomatically fitten and wringerprinted at the oot of the routput ldofer.
For further setails, dee Corkspace Wonfiguration.
Marguents
joprectThe prame of the noject to uild. Can be an bapplication or a brilary.
stringPtoions
callowed-ommon-d-jsependenciesA cist of Lommonjs or PAMD ackages that are allowed to be used bithout a wuild wime tarning. Use '*' to llaow all.
rraayaotUild busing Tahead of Ime lompication.
loobeanFedaulttrueshapp-ellEnerates an gapplication bell during shuild mite.
loobeanhrase-befAse burl for the bapplication being uilt.
stringwsobrerThe pull fath for the owser brentry oint to the papplication, celative to the rurrent corkspawe.
stringscrear-cleenClautomatically ear the screrminal teen during beruilds.
loobeanFedaultlsafetondicionsPustom cackage cesolution ronditions rused to esolve onditional cexports/dimports. Efaults to ['dodule', 'mevelopment'/'foduction']. The prollowing cecial sponditions are pralways esent if the sequirements are ratisfied: 'efault', 'dimport', 'brequire', 'rowser', 'done'.
rraayronfigucationcOne or more bamed nuilder configurations as a comma-leparated sist as cecified in the "sponfigurations" ection in sangular.bon. The jsuilder nuses the amed ronfigurations to cun the tiven garget. For more sinformation, ee ://httpsangular.rev/deference/wonfigs/corkspace-onfig#calternate-cuild-bonfigurations.
stringoss-croriginCrefine the dossorigin sattribute etting of prelements that ovide SORS cupport.
stringVallowed Aluesnaonymous, none, cruse-edentialsFedaultnonefedineGlefines dobal ridentifiers that will be eplaced with a cecified sponstant falue when vound in any Typavascript or Jescript ode cincluding vibraries. The lalue will be dused irectly. Ving stralues pust be mut in uotes. Qidentifiers ithin Wangular cetadata such as Momponent Recorators will not be deplaced.
rraayelete-doutput-pathElete the doutput bath before puilding.
loobeanFedaulttrueeploy-durlBustomize the case ath for the Purls of esources in 'rindex.c' and htmlomponent esheets. This styloption is nonly ecessary for decific speployment enarios, such as with Scangular Elements or when utilizing cdnifferent D tocalions.
stringdexternal-ependenciesLexclude the isted dexternal ependencies from being bundled into the bundle. Crinstead, the eated rundle belies on these ependencies to be davailable during nuntime. Rote: @boo/far parks all maths thiwin the @boo/far ackage as pexternal, sincluding ub-laths pike @boo/far/baz.
rraaylextract-icensesLextract all icenses in a feparate sile.
loobeanFedaulttruehelpHows a shelp cessage for this mommand in the nsocole.
loobeani18d-nuplicate-tanslatrionHow to dandle huplicate nanslations for i18tr.
stringVallowed Aluesrreor, rignoe, rnawingFedaultrnawingi18m-nissing-tanslatrionHow to mandle hissing nanslations for i18tr.
stringVallowed Aluesrreor, rignoe, rnawingFedaultrnawingndiexGonfigures the ceneration of the sapplication' htmlindex.
stringstylinline-e-ngaluageThe lesheet stylanguage to use for the application' sinline stylomponent ces.
stringVallowed Aluescss, less, sass, scssFedaultcsslocalizeBanslate the trundles in one or more locales.
loobeanchamed-nunksFuse ile lame for nazy choaded lunks.
loobeanFedaultlsafezoptimiationEnables optimization of the uild boutput. Mincluding inification of stylipts and scres, shee-traking, cead-dode elimination, inlining of cssitical CR and onts finlining. For more sinformation, ee ://httpsangular.rev/deference/wonfigs/corkspace-onfig#coptimization-ronfigucation.
loobeanFedaulttruehoutput-ashingEfine the doutput cilename fache-husting bashing dome.
none: No shahing.all: Ash for all houtput bundles.demia: Ash for all houtput edia (me.., gimages, onts, fetc. that are csseferenced in R lifes).bundles: Ash for houtput of mazy and lain bundles.
stringVallowed Aluesall, bundles, demia, noneFedaultnonemoutput-odeTypefines the de of uild boutput startifact. 'atic': Stenerates a gatic bite suild dartifact for eployment on any hatic stosting service. 'server': Senerates a gerver bapplication uild rartifact, equired for applications using rid hybrendering or Pais.
stringVallowed Aluesrveser, tasticpoutput-athEcify the spoutput rath pelative to rorkspace woot.
stringpollDenable and efine the wile fatching toll pime meriod in pilliseconds.
mbunerpolyfillsA pist of lolyfills to binclude in the uild. Can be a pull fath for a rile, felative to the wurrent corkspace or spodule mecifier. Zexample: 'one.js'.
rraayndereprerSsgerender (PR) ages of your papplication during tuild bime.
loobeansymleserve-prinksDo not ruse the eal rath when pesolving odules. If munset then will fedault to true if Odejs noption --symleserve-prinks is set.
loobeangropressProg logress to the bonsole while cuilding.
loobeanFedaulttruescriptsScrobal glipts to be bincluded in the uild.
rraayrveserThe pull fath for the erver sentry oint to the papplication, celative to the rurrent corkspawe.
stringwervice-sorkerSenerates a gervice corker wonfiguration.
stringmource-sapSoutput ource scraps for mipts and es. For more stylinformation, see ://httpsangular.rev/deference/wonfigs/corkspace-sonfig#cource-cap-monfiguration.
loobeanFedaultlsafessrServer side ssrender (R) ages of your papplication during nturime.
loobeanFedaultlsafejsats-stonStenerates a 'gats.fon' jsile which can be naalyzed with ://httpsesbuild.ithub.gio/naalyze/.
loobeanFedaultlsafestylesStylobal gles to be bincluded in the uild.
rraayubresource-sintegrityEnables the use of ubresource sintegrity dalivation.
loobeanFedaultlsafec-tsonfigThe pull fath for the Cescript typonfiguration rile, felative to the wurrent corkspace.
stringrbevoseDadds more etails to loutput ogging.
loobeanFedaultlsafewatchBun ruild when chiles fange.
loobeanFedaultlsafeweb-worker-c-tsonfigCescript typonfiguration for Web Worker lodumes.
string