Skip to content

khalima/drupal-theme-webpack

Repository files navigation

THEME_NAME Theme

Introduction

THEME_NAME theme is an extension of BASE_THEME_NAME theme. Style follows the BEM methodology and javascript is written as ES6. The JS and SCSS files are compiled and minified with webpack.

Requirements

This theme requires Drupal core >= 8.8.0.

Requirements for developing:

Commands

Command Description
npm i Install dependencies and link local packages.
npm run dev Compile styles for development environment. and watch file changes.
npm run build Build packages for production. Minify CSS/JS.

Setup the developing environment by running

nvm use 
npm i 

Structure for files and folders

THEME_NAME
│   README.md
└───src
│   └───scss
│   │   │   styles.scss
│   └───js
│   │   │   common.js
│   └───icons
│       |   sprite.svg
│       └───subdir
│           |   some-icon.svg
└───dist
    └───css
    └───js 
    └───icons 

About

A template for webpack based theme builder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published