Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Verbose when building with Webpack and NPM

Tags:

npm

webpack

I have the following package.json file and I am building using webpack:

{
  "name": "web",
  "private": true,
  "scripts": {
    "build": "webpack --config webpack.config.js --mode development"
  },
  "devDependencies": {
    "webpack": "4.21.0",
    "webpack-cli": "3.1.2"
  },
  "dependencies": {
    "jquery": "3.4.1"
  }
}

How can I pass a parameter when using npm run build to use verbose so I can see build errors?

like image 702
Miguel Moura Avatar asked Dec 30 '19 16:12

Miguel Moura


1 Answers

Try the following:

npm run build --verbose

(you can pass any parameter via npm run <command> after --).

like image 182
h3yduck Avatar answered Nov 17 '22 23:11

h3yduck