Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 555ad80

Browse files
committed
fix(demo): load jquery before angular
Following 4012b94 And using angular-ui-publisher@1.2.3 angular-ui/angular-ui-publisher@ec4721a
1 parent da7dc59 commit 555ad80

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

publish.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ module.exports = function() {
2626
inlineHTML : fs.readFileSync(__dirname + '/demo/demo.html'),
2727
inlineJS : fs.readFileSync(__dirname + '/demo/demo.js'),
2828
css: css_dependencies.map(putThemInVendorDir).concat(['demo/demo.css']),
29-
js : js_dependencies.map(putThemInVendorDir).concat(['dist/sortable.js']),
29+
js : function(defaultJsFiles){
30+
// HACK TO LOAD JQUERY BEFORE ANGULAR
31+
return ['vendor/jquery.js'].concat(defaultJsFiles, js_dependencies.slice(1).map(putThemInVendorDir).concat(['dist/sortable.js']));
32+
},
3033
tocopy : css_dependencies.concat(js_dependencies)
3134
};
3235
};

0 commit comments

Comments
 (0)