All Projects → sloansparger → Webpack Wordpress

sloansparger / Webpack Wordpress

Licence: mit
Build Wordpress themes using Webpack and Hot Module Reloading

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Webpack Wordpress

Wp Tailwind
A WordPress starter theme that utilizes Tailwind + PurgeCSS.
Stars: ✭ 135 (+35%)
Mutual labels:  webpack, wordpress
Wp Webpack Script
💥🔥📦👩‍💻 An easy to use, pre configured, hackable webpack setup & development server for WordPress themes and plugins.
Stars: ✭ 314 (+214%)
Mutual labels:  webpack, wordpress
Sage
WordPress starter theme with a modern development workflow
Stars: ✭ 11,531 (+11431%)
Mutual labels:  webpack, wordpress
Wordless
All the power of Pug, Sass, Coffeescript and WebPack in your WordPress theme. Stop writing themes like it's 1998.
Stars: ✭ 1,374 (+1274%)
Mutual labels:  webpack, wordpress
Wp Vuejs
WordPress VueJS Starter Theme
Stars: ✭ 19 (-81%)
Mutual labels:  webpack, wordpress
Base Camp
Awesome WordPress starter theme for developers based on modern web technologies.
Stars: ✭ 135 (+35%)
Mutual labels:  webpack, wordpress
Wp Reactivate
React boilerplate for WordPress plugins
Stars: ✭ 303 (+203%)
Mutual labels:  webpack, wordpress
Wp React Boilerplate
Boilerplate for creating WordPress plugin UI's with REST API, BrowserSync, Webpack and React
Stars: ✭ 109 (+9%)
Mutual labels:  webpack, wordpress
Vue Wordpress Pwa
An offline-first SPA using Vue.js, the WordPress REST API and Progressive Web Apps
Stars: ✭ 665 (+565%)
Mutual labels:  webpack, wordpress
Presspack
💻 Wordpress like it's 2020 with Webpack and Docker
Stars: ✭ 658 (+558%)
Mutual labels:  webpack, wordpress
Wp Api React
This boilerplate will help you use React JS with Wordpress REST API.
Stars: ✭ 255 (+155%)
Mutual labels:  webpack, wordpress
Generator Kittn
The Yeoman Kittn Generator
Stars: ✭ 63 (-37%)
Mutual labels:  webpack, wordpress
Woo Next
🚀 React WooCommerce theme, built with Next JS, Webpack, Babel, Node, Express, using GraphQL and Apollo Client
Stars: ✭ 342 (+242%)
Mutual labels:  webpack, wordpress
Wordpress Starter
📦 A starter template for WordPress websites
Stars: ✭ 26 (-74%)
Mutual labels:  webpack, wordpress
Bathe
The simplest WordPress starter theme including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, Eslint, imagemin, Browsersync, etc.
Stars: ✭ 65 (-35%)
Mutual labels:  webpack, wordpress
Wp Crontrol
WP Crontrol lets you view and control what's happening in the WP-Cron system.
Stars: ✭ 97 (-3%)
Mutual labels:  wordpress
Ng Boot Oauth
oauth2 demo with angularjs and springboot
Stars: ✭ 99 (-1%)
Mutual labels:  webpack
Wordpresssharp
A C# client to to interact with the WordPress XML-RPC API
Stars: ✭ 97 (-3%)
Mutual labels:  wordpress
Simple React Calendar
A simple react based calendar component to be used for selecting dates and date ranges
Stars: ✭ 97 (-3%)
Mutual labels:  webpack
Wp Help
#WordPressPlugin: Site operators can create detailed, hierarchical documentation for the site's authors, editors, and contributors, viewable in the WordPress admin
Stars: ✭ 99 (-1%)
Mutual labels:  wordpress

Webpack and Webpack Dashboard being used to develop WordPress Themes!

WordPress Webpack

This project aims to bring the best features of the latest tooling to WordPress theme development. Namely, this project gives you the ability to have hot module replacement provided by Webpack to allow you to develop javascript rich themes that without having to constantly reload the page. Additionally you can import any npm module and have it available on the front-end. This project also allows you to write your styling using SASS and use ES2015, and utilizes the awesome webpack-dashboard tool so you feel cool too.

Getting Started

To start using the project simply run:

git clone
npm install

The next step requires you to download WordPress and add it into a WordPress folder in the root folder. If you have WP CLI installed you can simply run

npm run setup

This will download the latest version of WordPress and add it to a WordPress folder. To view your project you will need to aim a tool like MAMP, WAMP, XAMMP, etc. to this WordPress folder. Now make sure to turn on your Apache server along with your MySQL server, then visit localhost:8888. You should now see the WordPress wp-config creation page. Create a new database in PhpMyAdmin and link up WordPress to it using WordPress' walkthrough. Once completed return to your terminal and run

npm run dev

Once run a browser will load the home page of your site at localhost:3000. This where be will all your development will take place.

Developing

Styling

To style your webpages you simply go into the awesome-theme/styling folder. Any SASS styles that are added to these folders will reload in the browser instantaneously.

Javascript

In awesome-theme/index.js you can import any and all javascript that you would like. Import npm packages or import your own files. Take advantage of having a modern ecosystem to create web apps using WordPress.

PHP and Template Files

All edits to php files will require a manual refresh to see changes. The hope is that in future versions of this tool that this will no longer be a need, but for now it is a requirement.

Todo

These are a few things that I think would make this tool just that much better

  • have page refresh when php file is changed, not just sass and js
  • source maps for sass
  • code linting
  • add composer to handle the plugins (php)
  • fix CopyWebpackPlugin copying *.hotpush.json files to WordPress/../theme-name-folder/assets/js
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].