Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GasPlugin() {};
- GasPlugin.prototype.apply = function(compiler) {
- compiler.hooks.emit.tap('GasPlugin', function(compilation) {
- var gasify = 'function main() {}'
- + ' /* Google App Script endpoint */\n'
- + compilation.assets['main.js'].source();
- compilation.assets['main.js'] = {
- source: function() {
- return gasify;
- },
- size: function() {
- return gasify.size;
- }
- }
- });
- };
- module.exports = GasPlugin;
Add Comment
Please, Sign In to add comment