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

346
Visualizações
What packages do I need to install to accomplish a "vue build <src path> --config <config file path> --dist <dist location> --prod --lib" command?

I've forked an old Vue.js package that has some issues in it (v-money) and made the necessary changes to accomplish what I need. But now when I try to build using the package's original method, I'm getting an error:

npm run build

vue build ./src/index.js --config ./build.config.js --dist ./dist/ --prod --lib "--disable-compress"

Usage: vue build [options]

alias of "npm run build" in the current project

Options:
  -h, --help  display help for command

  Unknown option --config.

I'm guessing I've got the wrong version of Vue.js installed, as the package didn't indicate what version it's supposed to be, but I can't find anything on the web that shows --config, --dist, --prod, and --lib as build options for Vue.js.

I've attempted to build the package as-is without any of my small changes and that fails in the same way.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Install the following dev dependencies from the root of the v-money project:

npm i -D vue-cli@2.8.2 \
         uglify-es \
         uglifyjs-webpack-plugin@^1

Edit build.config.js to use the Uglify dependencies installed above:

const UglifyJSPlugin = require('uglifyjs-webpack-plugin')

module.exports = {
  webpack: {
    ⋮
    plugins: [
      new UglifyJSPlugin(),
      ⋮
    ]
  }
}

demo

over 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