asset-builder icon indicating copy to clipboard operation
asset-builder copied to clipboard

Add "Make Relative" option

Open austinpray opened this issue 10 years ago • 2 comments

var manifest = require('asset-builder')('./assets/manifest.json', {
  makePathsRelative: true
});

This will transform all the paths to be relative to the project root.

/home/you/project/bower_componets/jquery/jquery.js :arrow_right: bower_components/jquery/jquery.js

Stopgap for https://github.com/roots/sage/pull/1485#issuecomment-129622691

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/25629387-add-make-relative-option?utm_campaign=plugin&utm_content=tracker%2F8853550&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F8853550&utm_medium=issues&utm_source=github).

austinpray avatar Aug 10 '15 23:08 austinpray

Needs tests

kalenjohnson avatar Aug 10 '15 23:08 kalenjohnson

:eyes:

retlehs avatar Sep 15 '15 16:09 retlehs