Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

loadPaths should be able to handle glob #40

@aegyed91

Description

@aegyed91

Hi @borodean, I think the loadPaths option does not handle glob patterns. It would be an useful feature i think.

assets({
  basePath: config.SRC_DIR,
  loadPaths: [path.join(config.DEST_DIR, '**/*')],
  relativeTo: 'public/css'
})
[21:54:48] Starting 'css'...

events.js:141
      throw er; // Unhandled 'error' event
      ^
Error: postcss-assets: /Users/tsm/Sites/__projects/gulp-starter/src/css/main.css:2:3: Asset not found or unreadable: sample.jpeg
Load paths:
  /Users/tsm/Sites/__projects/gulp-starter/src
  /Users/tsm/Sites/__projects/gulp-starter/public/**/*
.sample-bg-image {
  background-image: resolve("sample.jpeg"); }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions