Dab tsi yog dist folder hauv angular?
Dab tsi yog dist folder hauv angular?

Video: Dab tsi yog dist folder hauv angular?

Video: Dab tsi yog dist folder hauv angular?
Video: Tshuaj theem vim li cas thiaj tau nqi ?/ Siv kho mob dab tsi?/paris polyphylla use for? 2024, Hlis ntuj nqeg
Anonim

Yuav kom teb luv luv rau koj cov lus nug yog, lub dist folder yog lub build nplaub tshev uas muaj tag nrho cov ntaub ntawv thiab folders uas tuaj yeem tuav hauv server. Cov dist folder muaj cov ntaub ntawv transpiled ntawm koj lub kaum sab xis daim ntawv thov nyob rau hauv hom JavaScript thiab tseem yuav tsum tau html thiab css cov ntaub ntawv.

Raws li, dist folder yog dab tsi?

Qhov shortform dist stands rau distributable thiab hais txog a phau ntawv qhov twg cov ntaub ntawv yuav raug khaws cia uas tuaj yeem siv ncaj qha los ntawm lwm tus yam tsis tas yuav tsum tau sau lossis txo cov lej uas tau rov qab siv dua.

Tsis tas li ntawd, ng ua haujlwm li cas? Los ntawm cov ntaub ntawv: CLI txhawb nqa kev ua haujlwm nyob browser rov ua haujlwm rau cov neeg siv los ntawm kev khiav ng pab . Qhov no yuav suav sau daim ntawv thov raws li cov ntaub ntawv khaws tseg thiab rov rub lub browser nrog daim ntawv thov tshiab tshiab. Qhov no yog ua los ntawm hosting daim ntawv thov hauv nco thiab ua haujlwm ntawm webpack-dev- server.

Ib tug kuj yuav nug, dab tsi yog NG tsim nyob rau hauv angular?

ua build yog ib lub kaum sab xis hais kom ua compiles daim ntawv thov mus rau hauv cov zis directory.(saib: lub kaum sab xis / lub kaum sab xis -cli/wiki/ tsim ) – Sanju Sep 21 '18 at 7:56. 43. Cov ua build lus txib yog txhob txwm rau lub tsev cov apps thiab deploying cov tsim cov khoom qub.

BASE HREF yog dab tsi hauv angular?

Qhov < base href ="/"> hais rau tus Angular router dab tsi yog qhov zoo li qub ntawm URL. Lub router tsuas yog hloov kho qhov seem ntawm qhov URL.

Pom zoo: