Skip to content
Drupal 8 theme generator, based on webpack.
CSS JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
generators/app
.editorconfig
.eslintignore
.gitattributes
.gitignore
.travis.yml
.yo-rc.json
LICENSE
README.md
package-lock.json
package.json

README.md

generator-drupal-theme

Generates custom Webpack-based themes for Drupal 8

Installation

First, install Yeoman and generator-drupal-theme using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g @davez1000/generator-drupal-theme

Usage

Say you want to generate a theme called "My Custom Theme"

mkdir -p custom/my_drupal_theme
cd custom/my_drupal_theme
yo @davez1000/drupal-theme

Then at the prompts

  1. Enter your theme name (e.g. My Drupal Theme)
  2. Enter your local drupal server's URI (e.g. http://dev-site.dev:8080)

Finally start your webpack dev server

npm start

Building

After development, build the JS bundle

npm run-script build
You can’t perform that action at this time.