Skip to content
/ tailor Public

Webpack 5 asset building for WordPress themes.

Notifications You must be signed in to change notification settings

Fhoke/tailor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tailor

Webpack 5 asset building for WordPress themes.

Usage

To use Tailor in your project you just need to install it as a dependency:

# NPM
npm install @fhoke/tailor

# Yarn
yarn add @fhoke/tailor

Important: You will need to be logged in to NPM via the command line as Tailor is a private NPM package.

Scripts

To use the Tailor CLI tool, you can run it like so:

# Run development build
./node_modules/.bin/tailor dev

# Run production build
/node_modules/.bin/tailor prod

# Watch for development changes
./node_modules/.bin/tailor watch-dev

# Watch for production changes
./node_modules/.bin/tailor watch-prod

Or you can add your own NPM / Yarn scripts to your package.json file like so:

"scripts": {
    "dev": "./node_modules/.bin/tailor dev",
    "prod": "./node_modules/.bin/tailor prod",
    "watch:dev": "./node_modules/.bin/tailor watch-dev",
    "watch:prod": "./node_modules/.bin/tailor watch-prod"
}

About

Webpack 5 asset building for WordPress themes.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •