@strarsis - thanks for all of that… I literally just put together my own working repo here:
Everything works fine on mine.
I just tried yours and on yarn watch
it returns this error:
[webpack-cli] ReferenceError: merge is not defined
I updated the theme installation instructions as well.
Theme installation
Clone this repo and update the publicPath and devUrl in config.json
# @ resources/assets/config.json
{
"entry": {
"main": [
"./scripts/main.js",
"./styles/main.scss"
],
"customizer": [
"./scripts/customizer.js"
]
},
"publicPath": "/app/themes/sage9-wp5-tailwind2",
"devUrl": "http://sage9-wp5-tailwind2.test",
"proxyUrl": "http://localhost:3000",
"cacheBusting": "[name]_[hash:8]",
"watch": [
"app/**/*.php",
"config/**/*.php",
"resources/views/**/*.php"
]
}
Be sure you're running node 12 first.
Navigate to your theme directory and run:
yarn && yarn build
Still in your theme, run:
composer install
Optionally update your theme details
# @ resources/style.css
/*
Theme Name: Sage Starter Theme
Theme URI: https://roots.io/sage/
Description: Sage is a WordPress starter theme.
Version: 9.0.10
Author: Roots
Author URI: https://roots.io/
Text Domain: sage
License: MIT License
License URI: http://opensource.org/licenses/MIT
*/
Now go activate theme.