This is a package that provides asset compilation for WordPress themes that follow the Three29 naming conventions. This
is heavily inspired from wp-scripts
and react-scripts
.
Run the following command to install:
npm install --save-dev t29-wp
Run t29-wp build
to compile assets for production.
// Example section from package.json
"scripts": {
"build": "t29-wp build",
},
Run t29-wp start
to compile for development and watch assets for changes.
// Example section from package.json
"scripts": {
"watch": "t29-wp start",
},
Adds the serve
argument to the beginning of the command passed to webpack.
Removes the watch
argument to the beginning of the command passed to webpack.