File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -253,11 +253,19 @@ function main() {
253
253
var fs = require ( 'fs' ) ;
254
254
255
255
// Output a useless loader that should be optimized out.
256
+ // If you need scripts to manipulate this part, use the START and END
257
+ // tokens.
256
258
console . log (
257
- "/** AngularJS Loader Script */"
258
- + "window.angular = window.angular || {};\n"
259
- + "window.angular.loader = function() { return {then: function(fn) { window.setTimeout(fn, 0)}}};\n"
260
- + "window.angular.loader.config = function() {};\n"
259
+ "/** AngularJS Loader Script */\n"
260
+ + "/*@START@@@@@@@@@@@@@@@@@@@@*/\n"
261
+ + "/** @extern */"
262
+ + "window['angular'] = window['angular'] || {};\n"
263
+ + "/** @extern */"
264
+ + "window['angular'].loader = function() {"
265
+ + "return {then: function(fn) { window.setTimeout(fn, 0)}}"
266
+ + "};\n"
267
+ + "/** @extern */"
268
+ + "window['angular'].loader.config = function() {};\n"
261
269
+ "function __angularjs_insertScript(path) {\n"
262
270
+ " var newScriptTag = document.createElement('script');\n"
263
271
+ " newScriptTag.type = 'text/javascript';\n"
@@ -271,6 +279,7 @@ function main() {
271
279
+ " });\n"
272
280
+ " document.head.appendChild(newScriptTag);\n"
273
281
+ "};\n"
282
+ + "/*@END@@@@@@@@@@@@@@@@@@@@@@*/\n"
274
283
+ "\n"
275
284
) ;
276
285
You can’t perform that action at this time.
0 commit comments