A Webpack boiler plate for a Wordpress theme
DOCUMENTATION IN PROGRESS
-
5-step find and replace on the name in all the templates
- Search for:
'asap_s'
and replace with:'<project-name>'
(inside single quotations) to capture the text domain. - Search for:
asap_s_
and replace with:<project-name>_
to capture all the function names. - Search for:
Text Domain: asap_s
and replace with:Text Domain: <project-name>
in style.css. - Search for:
asap_s
and replace with: - Search for:
asap_s-
and replace with:<project-name>-
to capture prefixed handles.
- Search for:
-
Update BrowserSync proxy
proxy: 'local.<project-name>.com'
- Requires node.js and gulp
- Requires local WordPress environment (works best with https://github.com/geekster909/asap-wp)
npm install
Dev Command
npm run build:dev -s -- --watch
Build Command
npm run build