jquery does not work
Opened this issue · 0 comments
Deleted user commented
When I run gulp jquery js file always concatenate after bootstrap js file... how do I make the jquery file always concatenate on top?
"dependencies": {
"bootstrap": "^4.0.0-alpha.6",
"electron-reload": "^1.1.0",
"lodash": "^4.17.4",
"jquery": "^3.2.1",
}
render.js
var $ = jQuery = require('jquery');
var bootstrap = require('bootstrap');
var tether = require('tether');
gulpfile.js
var gulp = require('gulp'),
browserify = require('gulp-browserify'),
concatCss = require('gulp-concat-css'),
run = require('gulp-run');
var src = './process',
app = './app';
gulp.task('js', function() {
return gulp.src( src + '/js/render.js' )
.pipe(browserify({
transform: 'reactify',
extensions: 'browserify-css',
debug: true
}))
.on('error', function (err) {
console.error('Error!', err.message);
})
.pipe(gulp.dest(app + '/js'));
});