Skip to content
This repository was archived by the owner on Nov 27, 2017. It is now read-only.

Add support for path prefixes - #19

Open
Dragory wants to merge 2 commits into
jgallen23:masterfrom
Dragory:master
Open

Add support for path prefixes#19
Dragory wants to merge 2 commits into
jgallen23:masterfrom
Dragory:master

Conversation

@Dragory

@Dragory Dragory commented Apr 17, 2014

Copy link
Copy Markdown

This PR adds support for adding prefixes to the generated paths in the mapping file.

An example use case:

src: assets/css/min/*.css
dest: assets/css/hash/

desired key: css/
desired value: css/

Can be accomplished with this config:

{
  options: {
    mapping: 'hashes.json',
    srcBasePath: 'assets/css/min/',
    destBasePath: 'assets/css/hash/',

    srcPathPrefix: 'css/',
    destPathPrefix: 'css/'
  },
  src: 'assets/css/min/*.css',
  dest: 'assets/css/hash/'
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant