WordPress CMS running in Docker and using Webpack for theme development.
git clone git@github.com:notepadwebdev/wordpress-docker-webpack.git
Install Docker (if you don't already have it), and start the Docker app.
From the repo root do the following...
- Start the Docker container
docker-compose up -d
- When complete (can take a few of minutes - especially first time) go to http://localhost:8888/ and complete the usual WordPress install.
- Once installed, log into WordPress and enable the included plugins
- Switch theme to the provided
Boilerplate Theme
theme. - Make sure that WP permalinks are setup correctly. Settings => Permalinks => choose Post name and save.
From the root directory, run the following command to start the Docker container
docker-compose up -d
Navigate to the Boilerplate theme root, gather dependencies, and then start the dev server...
cd wp-content/themes/boilerplate-theme
npm i
npm run start
- ACF Local JSON enabled.
- A reduced Admin UI.
- Docker volume for
./wp-content
for your plugins, themes, and uploads.
WordPress (CMS only): http://localhost:8888/wp-admin/
phpMyAdmin: http://localhost:3333/
user: wordpress
pass: wordpress
Build and minify assets to the dist folder from the root of the theme
npm run build