gulp-bundle-assets icon indicating copy to clipboard operation
gulp-bundle-assets copied to clipboard

allow different pathPrefix per result target

Open chmontgomery opened this issue 11 years ago • 1 comments

e.g. bundle.result should accept an object like this:

{
  dest: './',
  pathPrefix: [
    {
      env: 'default',
      val: '/public'
    },
    {
      env: 'staging',
      val: 'http://mw3.stg.wsj.net/public'
    },
    {
      env: ['production', 'prodore', 'prodvir'],
      val: 'http://mw2.wsj.net/public'
    }
  ]
}

chmontgomery avatar Aug 06 '14 16:08 chmontgomery

I like the env definitions. I suppose the same thing can be accomplished now by checking env before the plugin runs (and setting pathPrefix), then passing to https://github.com/dowjones/gulp-bundle-assets/blob/master/docs/API.md#optionspathprefix

timelf123 avatar Jun 30 '15 16:06 timelf123