-
Construct WordPress in your favorite way like Docker and Local.
-
Duplicate
.env-sample
and rename it to.env
in this directory. -
Edit
.env
in this directory, to set variablesMIX_BROWSER_SYNC_PROXY
. If needed, setMIX_BROWSER_SYNC_HTTPS_KEY
andMIX_BROWSER_SYNC_HTTPS_CERT
too. -
Run
npm i
andnpm run build
in this directory, to output theme. -
Link
dist
in this directory andwp-content/themes/sitename
in your WordPress, as volume or with symlink. -
Apply sitename theme in WordPress admin page.
-
Run
npm run dev
to develop. -
Open
http(s)://localhost:3000
to check behavior. -
Run
npm run build
to output production files.
dsktschy/laravel-mix-boilerplate-wordpress
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A boilerplate for WordPress, based on Laravel Mix.
Resources
Stars
Watchers
Forks
Packages 0
No packages published