Tools for manipulating a dependency graph.
var stealTools = require("steal-tools");
stealTools.build({
}, {
bundleAssets: true
}
exports.find = function(bundle){
return [
{
path: "path/to/some/font.off"
},
{
path: "path/to/some/image.png"
}
];
};
exports.rewrite = function(source, bundlesPath, assets){
// Modify source by dissecting assets
return source;
};
Supports Divshot and S3
exports.properties = [
{
"name": "bucket",
"desc": "This is your bucket",
"default": function() { ... }
}
];
exports.deploy = function(package, options){
// Do the deploy
};
<img src="{{~ 'path/to/image.png'}}" />
<img src="{{~ some.prop}}" />
When server-side rendering there is the context that the app runs in on the server and there is the context that represents the client, the renderingLoader acts on behalf of the client.
{
"name": "place-my-order",
"system": {
"envs": {
"production": {
"baseURL": "https://somecdn.com/place-my-order/"
}
}
}
}