Well how would you like me to give you an example?
Actually to get this you can create any sytem.js type plugin example some.js:
- exports.instantiate = function(load) {
- load.metadata.deps = [];
-
- load.metadata.execute = function(){
-
- if(load.source) {
- /// some action here
- }
- return System.newModule({});
- };
- load.metadata.format = "some";
- }
Import
file using this plugin.
- require('somefile.txt!some')
And
try to build.