Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Gulp Config

Brian Lewis edited this page Mar 3, 2017 · 6 revisions

Gulp Setup

Available Commands

Performance Testing

Google PageSpeed Insights: gulp psi

WebPageTest.org: gulp wpt

Both: gulp qa

Local Configuration

Emulsify keeps Gulp config in a dedicated file and allows you to override those defaults by keeping a local config file in your project. For example, if you want to run all gulp tasks from the root of a Drupal 8 project, below are the steps required:

  1. Create local.gulp-config.js in your root directory and copy/override contents from the original
  2. In that file, set the theme path accordingly, e.g. var themeDir = './docroot/themes/custom/emulsify/';
  3. Also, set the browserSync startPath variable, e.g., startPath: 'docroot/themes/custom/emulsify/pattern-lab/public/',