Skip to content

Instantly share code, notes, and snippets.

@matthewp
Created August 5, 2014 18:15
Show Gist options
  • Save matthewp/689f07481ed0906d0dac to your computer and use it in GitHub Desktop.
Save matthewp/689f07481ed0906d0dac to your computer and use it in GitHub Desktop.
exports.translate = function(load) {
load.source = 'module.exports = ' + load.source + ';';
};
import data from './path./to/data.json!';
steal.config({
ext: {
json: 'path/to/json' // This is the part to your json.js file (above) which is the plugin
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment