Problem/Motivation

Themes often need to include 3rd-party libraries as dependencies such as GSAP or Splide. Currently there's no clear place for those so it's tempting to put them directly in the /libraries directory. However, doing so means these libraries will get watched and compiled alongside the theme source code. This will slow things down, create unnecessary build assets. and likely lead to Gulp errors due to missing dependencies.

Proposed resolution

Add an empty vendor directory with a Readme.md file explaining its purpose.

Issue fork prototype-3418509

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pixelwhip created an issue. See original summary.

pixelwhip’s picture

Issue summary: View changes
pixelwhip’s picture

Issue summary: View changes

pixelwhip’s picture

Status: Active » Needs review

jldust made their first commit to this issue’s fork.

jldust’s picture

Status: Needs review » Fixed

This is a great solution, I've pulled this into the 5.x branch and will include it in the next tagged release.

jldust’s picture

Status: Fixed » Closed (fixed)