package.json

Last updated Tuesday 15 July 2025

The package.json file indicates command lines and node modules to download.

Command lines

npm run build
One time build without compression for themes, plugins and mu-plugins.

npm run build:themes
One time build without compression for themes.

npm run build:plugins
One time build without compression for plugins.

npm run build:mu-plugins
One time build without compression for mu-plugins.

npm run prod
One time build with compression for themes, plugins and mu-plugins.

npm run prod:themes
One time build with compression for themes.

npm run prod:plugins
One time build with compression for plugins.

npm run prod:mu-plugins
One time build with compression for mu-plugins.

npm run watch
Build and watch without compression for themes, plugins and mu-plugins.

npm run watch:themes
Build and watch without compression for themes.

npm run watch:plugins
Build and watch without compression for plugins.

npm run watch:mu-plugins
Build and watch without compression for mu-plugins.

npm run get:core
Used with the project initialization. Used for create the dist directory, install the WordPress production files and the ACF Pro plugin.

Node modules

  • @babel/core
  • @babel/preset-env
  • @babel/preset-react
  • @fortawesome/fontawesome-svg-core
  • @fortawesome/free-brands-svg-icons
  • @fortawesome/free-regular-svg-icons
  • @fortawesome/free-solid-svg-icons
  • @fortawesome/react-fontawesome
  • babel-loader
  • copy-webpack-plugin
  • file-loader
  • gsap
  • html-react-parser
  • image-minimizer-webpack-plugin
  • imagemin
  • imagemin-gifsicle
  • imagemin-jpegtran
  • imagemin-mozjpeg
  • imagemin-optipng
  • imagemin-pngquant
  • imagemin-svgo
  • path
  • react
  • react-dom
  • react-helmet-async
  • react-router-dom
  • sass
  • sass-loader
  • terser-webpack-plugin
  • url
  • webpack
  • webpack-cli