Skip to content

kennycrosby/bp-wordpress-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boilerplate for Wordpress CMS with Webpack SCSS

Project boilerplate using webpack, sass, autoprefixer and the 7-1 sass styling architecture.

The idea for this project was to make my own custom starting point for current and future projects using wordpress and webpack. The scss scturcture is using the 7-1 architecture and was mostly borrowed from:

https://github.com/HugoGiraudel/sass-boilerplate

To get started:

  1. Download wordpress and place into the www directory
  2. Install wordpress https://codex.wordpress.org/Installing_WordPress
  3. Update the wordpress theme name in webpack.config.js from the current const themeName = 'my-cool-wordpress-theme'
  4. Run the project
  5. Log into wordpress and set your template to your new templated you created

To begin the project run:

yarn install for dependencies

yarn build builds out the production directory in "public"

yarn start starts up the webpack dev server for development