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

345
Views
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 answers
Answer question

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 Report
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!