Snowpack: Support multiple "include" globs

Created on 30 Mar 2020  路  2Comments  路  Source: snowpackjs/snowpack

Original Discussion: https://www.pika.dev/npm/snowpack/discuss/97
/cc @stefanfrede

Today, we only support a single "include" glob for auto import scanning. We should support multiple includes if the user wants to provide them.

enhancement good first issue help wanted

All 2 comments

Does it make sense to switch to globby? It looks like there is a 4.5 year old issue in glob (https://github.com/isaacs/node-glob/issues/217) which asks for support of multiple patterns. Globby's documentation (https://github.com/sindresorhus/globby#globbysyncpatterns-options) suggests it supports an array of patterns.

Solved in Snowpack v2:

  • your entire application is now scanned/supported by default
  • 'scripts' can be used to configure your dev environment to only include certain directories via the "mount" script
  • you can mount as many directories to your project as you'd like
Was this page helpful?
0 / 5 - 0 ratings

Related issues

FredKSchott picture FredKSchott  路  5Comments

daniele-orlando picture daniele-orlando  路  6Comments

FredKSchott picture FredKSchott  路  4Comments

FredKSchott picture FredKSchott  路  3Comments

FredKSchott picture FredKSchott  路  5Comments