You might be familiar with npm run command which performs a series of tasks define in package.json file. Package.json file is available in the root of the script.


If you go to package.json file, you will get some pre-defined scripts as below:


  1. npm run dev: This command is short-form for npm run development, which compiles the assets in unminified version.
  2. npm run development: This performs same operation as npm run dev.
  3. npm run watch: This command compiles the assets and watch for the changes.
  4. npm run hot: This command compiles the assets and watch the files with instant reload.
  5. npm run prod: This command is short-form for npm run production, which compiles the assets in minified version.
  6. npm run production: This performs same operation as npm run prod.


You can also define dependencies and developer dependencies for your project in this package.json file. For example, Vuex library is used in this script, therefore it is added in devDependency. You can add any dependency and install it via npm install command.