Front-End Boilerplate is a Starter theme with a modern development workflow.
- SCSS for stylesheets
- Modern JavaScript
- Webpack for compiling assets, optimizing images, and concatenating and minifying files
- Browsersync for synchronized browser testing
Make sure all dependencies have been installed before moving on:
During theme installation you will have configure Browsersync.
your-theme-name/ # → Root of your based theme
├── dist/ # → Built theme assets (never edit)
├── node_modules/ # → Node.js packages (never edit)
├── package.json # → Node.js dependencies and scripts
├── src/ # → Front-end assets
│ ├── config.json # → Settings for compiled assets
│ ├── build/ # → Webpack and ESLint config
│ ├── fonts/ # → Theme fonts
│ ├── images/ # → Theme images
│ ├── js/ # → Theme JS
└───└── scss/ # → Theme stylesheets
- Run
yarn
from the theme directory to install dependencies - Update
src/config.json
settings:devUrl
should reflect your local development hostname
yarn start
— Compile assets when file changes are made, start Browsersync sessionyarn build
— Compile and optimize the files in your assets directoryyarn build:production
— Compile assets for production
Help support our open-source development efforts by becoming a patron.