What's the difference between npm run build and npm install webpack?
In what ways these commands differ
In what ways these commands differ
webpack is a module bundler for javascript application. In order to run webpack ypu need to get the webapck in your project.npm install webpack
will install webpack from node module software library using npm install webpack
command.
npm run build
is a separate command to build the code. If you open package.json
inside scripts
you may see a key like build
example
scripts:{
build:someValue
}