https://github.com/jamestowers/wordpress-webpack-hmr-starter
Webpack starter setup with Hot Module Reloading
https://github.com/jamestowers/wordpress-webpack-hmr-starter
hmr webpack webpack-dev-server webpack2 wordpress
Last synced: 4 months ago
JSON representation
Webpack starter setup with Hot Module Reloading
- Host: GitHub
- URL: https://github.com/jamestowers/wordpress-webpack-hmr-starter
- Owner: jamestowers
- Created: 2017-11-21T10:17:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-06T17:37:28.000Z (over 8 years ago)
- Last Synced: 2025-03-01T04:24:28.347Z (over 1 year ago)
- Topics: hmr, webpack, webpack-dev-server, webpack2, wordpress
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Webpack dev server setup with Hot Module Reloading for Wordpress, uses PostCSS
This repo borrows most of the code from [this repo](https://github.com/tadejstanic/wp-hrm-webpack) so you can refer to that.
1. Copy the contents of the repo into your theme folder
2. run `npm install` to install dependencies
3. Update the contents of `env.config.js` to match your theme
4. run `npm start` to start the dev server, changes to php, js and css files will be automatically reloaded, css and js changes won't require a page refresh
5. When you are ready to publish the theme, run `npm build` to dump the built theme into the `build` folder, upload that version to your wordpress install