Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

191
Visualizações
How to set up angular 4 with webpack

When i create angular-project(ng new projectname), it automatically build inline.bundle.js, main.bundle.js, polyfills.bundle.js, styles.bundle.js, vender.bundle.js in dist folder. I can use the dist/index.js in backend. So my question is "Ng4 build webpack automatically?"

about 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

When you use angular-cli to create an angular 2 project, the project is automatically build with webpack.

Angular-cli changed from systemjs to webpack a while ago.

If you want to get the webpack configuration file you can use ng eject.

https://github.com/angular/angular-cli/wiki/eject

Edit based on comment:

There is no dependency on webpack in your angular project because angular/cli has a dependency on webpack and will install webpack for you. If you check your node_modules folder, you will see that webpack is there.

about 4 years ago · Santiago Trujillo Relatório

0

from your project home directory, run the next command:

npm run build

this command will create a folder named dist.

in this folder you will find your files. Edit the file webpack.config.js to change where the webpack places your files.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda