Skip to content

A WordPress Child Theme Boilerplate Template, using Laravel Mix to handle assets

Notifications You must be signed in to change notification settings

jameswhayman/wordpress-child-theme-boilerplate-laravel-mix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

This is a WordPress child theme, designed to work alongside most themes, while giving developers the flexibility to write SCSS and ES6 JS without relying too heavily on the parent theme's way of adding custom styling/scripts.

Assets structure

The theme uses laravel-mix to compile the assets. The structure of the assets directory is based on my own personal experience, separating each template out into its own stylesheet.

How to use

  1. Install the dependencies using npm/yarn.
  2. Make sure you update the "Template" option in the style.css file, so that it matches your parent theme.
  3. Update the wp_enqueue_script/wp_enqueue_style dependences in the lib/utilities.php file including your parent theme's files as dependencies.
  4. Edit the webpack.mix.js file to update the proxy hostname.
  5. Run yarn run dev or yarn run watch to get started. The full list of commands is in package.json

About

A WordPress Child Theme Boilerplate Template, using Laravel Mix to handle assets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published