Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

219
Views
vue: ¿cuál es la diferencia de usar el paquete web generado por vue-cli o manualmente?

Soy nuevo en vue.js y webpack .

Estoy tratando de entender cómo funciona el webpack y cómo puedo implementarlo en vue.js

Hay 2 métodos que usan webpack en vue.js

1. Usando vue-cli

Puedo ejecutar vue add webpack en la terminal, luego se generará vue.config.js .

 // vue.config.js module.exports = { configureWebpack: { plugins: [ new MyAwesomeWebpackPlugin() ] } }

En paquete.json

 "scripts": { "build": "vue-cli-service build" }, ...

2. Configuración manual
Puedo instalar webpack y webpack-cli .

webpack.config.js

 const { VueLoaderPlugin } = require("vue-loader"); const path = require("path"); module.exports = { entry: { main: "./src/main.js", }, output: { path: path.resolve(__dirname, "dist"), }, module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: "babel-loader", }, }, { test: /\.vue$/, loader: "vue-loader", }, ], }, plugins: [ new VueLoaderPlugin(), ], resolve: { alias: { vue$: "vue/dist/vue.runtime.esm.js", }, extensions: ["*", ".js", ".vue", ".json"], }, };

En paquete.json

 "build": "webpack --mode production"

Desde arriba, puedo ver alguna diferencia en la sintaxis.
1. script de creación
2.config.js
etc.

¿De qué manera preferiría usar el desarrollador moderno de Vue y por qué?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!