Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to add jquery.js before bootstrap.js #3

Open
hypesol opened this issue Mar 3, 2016 · 0 comments
Open

I want to add jquery.js before bootstrap.js #3

hypesol opened this issue Mar 3, 2016 · 0 comments

Comments

@hypesol
Copy link

hypesol commented Mar 3, 2016

I am using this app but now I am stuck when I tried to use jquery in my project

this is code

export const NPM_DEPENDENCIES = [
{ src: 'systemjs/dist/system-polyfills.js', dest: LIB_DEST },
{ src: 'es6-shim/es6-shim.min.js', inject: 'shims', dest: LIB_DEST },
{ src: 'reflect-metadata/Reflect.js', inject: 'shims', dest: LIB_DEST },
{ src: 'systemjs/dist/system.src.js', inject: 'shims', dest: LIB_DEST },
{ src: 'angular2/bundles/angular2-polyfills.js', inject: 'shims', dest: LIB_DEST },

// Faster dev page load

{ src: 'rxjs/bundles/Rx.min.js', inject: 'libs', dest: LIB_DEST },
{ src: 'angular2/bundles/angular2.min.js', inject: 'libs', dest: LIB_DEST },
{ src: 'angular2/bundles/router.js', inject: 'libs', dest: LIB_DEST }, // use router.min.js with alpha47
{ src: 'angular2/bundles/http.min.js', inject: 'libs', dest: LIB_DEST },
{ src: 'bootstrap/dist/js/bootstrap.js', inject: 'libs', dest: LIB_DEST },
{ src: 'bootstrap/dist/css/bootstrap.min.css', inject: true, dest: CSS_DEST },
{ src: 'ng2-material/dist/ng2-material.css', inject: true, dest: CSS_DEST },
{ src: 'ng2-material/dist/font.css', inject: true, dest: CSS_DEST }
];

// Declare local files that needs to be injected
export const APP_ASSETS = [
{ src: ${ASSETS_SRC}/css/font-awesome.css, inject: true, dest: CSS_DEST },
{ src: ${ASSETS_SRC}/css/owl.carousel.css, inject: true, dest: CSS_DEST },
{ src: ${ASSETS_SRC}/css/owl.theme.css, inject: true, dest: CSS_DEST },
{ src: ${ASSETS_SRC}/css/owl.transitions.css, inject: true, dest: CSS_DEST },
{ src: ${ASSETS_SRC}/main.css, inject: true, dest: CSS_DEST },
{ src: ${ASSETS_SRC}/js/jquery-1.12.1.js, inject: true, dest: LIB_DEST },
{ src: ${ASSETS_SRC}/js/owl.carousel.js, inject: 'libs', dest: LIB_DEST },
{ src: ${ASSETS_SRC}/js/custom.js, inject: 'libs', dest: LIB_DEST }

];

NPM_DEPENDENCIES
.filter(d => !/*/.test(d.src)) // Skip globs
.forEach(d => d.src = require.resolve(d.src));

export const DEPENDENCIES = NPM_DEPENDENCIES.concat(APP_ASSETS);

I need to use change sequence of js file.

  1. jquery
  2. bootstrap
  3. all other js files
    Please solve this issue

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant