Skip to content

Build Process

Brett Mason edited this page Nov 23, 2018 · 1 revision

Build Process

This theme utilizes Webpack for most of the build process with the theme.

You may configure the build process to your liking by editing ./config/build.js which is used to setup the Webpack build process.

The following is a list of commands you can run from the command line:

# Processes all of your assets for a development environment.
npm run dev

# Watches for changes to any files and rebuilds and syncs with the browser using BrowserSync.
npm run watch

# Processes all of your assets for a production environment.
npm run build

# Lint JavaScript, CSS, and PHP files.
npm run lint
npm run lint:styles
npm run lint:scripts
npm run lint:php

# Auto-adds a textdomain and/or creates a POT file.
npm run i18n
npm run i18n:textdomain
npm run i18n:pot
Clone this wiki locally