Skip to content
An example, minimal Drupal theme that uses Webpack.
JavaScript CSS
Branch: master
Clone or download
Latest commit 71a11fe Oct 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Initial commit. Oct 14, 2019
js Initial commit. Oct 14, 2019
scss Initial commit. Oct 14, 2019
.gitignore Initial commit. Oct 14, 2019
README.md Added basic docs. Oct 14, 2019
package-lock.json Initial commit. Oct 14, 2019
package.json Initial commit. Oct 14, 2019
postcss.config.js Initial commit. Oct 14, 2019
webpack.config.js Cleanup config. Oct 14, 2019
webpack_example.info.yml Initial commit. Oct 14, 2019
webpack_example.libraries.yml Initial commit. Oct 14, 2019
webpack_example.theme Initial commit. Oct 14, 2019

README.md

Example Webpack Drupal theme

This is an example Drupal theme that uses Webpack, and is meant to accompany a blog post that goes through its features.

Installation

git clone git@github.com:thinkshout/webpack_example.git
cd webpack_example
npm install

Use

# Start a production build and watch for changes.
npm run start
# Start a development build and watch for changes.
npm run start:dev
# Run a one-time production build.
npm run build
# Run a one-time development build.
npm run build:dev

If the dist_dev directory exists and your cache is clear, this theme will use its contents instead of dist. The first time you run a development build you may have to run rebuild caches to see your changes.

You can’t perform that action at this time.