mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-25 14:54:19 +01:00
introduced source maps, and fixed uglify again
This commit is contained in:
parent
5a71c39bb9
commit
962dc21aab
11
gulpfile.js
11
gulpfile.js
@ -5,6 +5,7 @@ var minifyCss = require('gulp-minify-css')
|
|||||||
var browserify = require('browserify')
|
var browserify = require('browserify')
|
||||||
var uglify = require('gulp-uglify')
|
var uglify = require('gulp-uglify')
|
||||||
var clean = require('gulp-clean')
|
var clean = require('gulp-clean')
|
||||||
|
var exorcist = require('exorcist')
|
||||||
var connect = require('gulp-connect')
|
var connect = require('gulp-connect')
|
||||||
|
|
||||||
var config = {
|
var config = {
|
||||||
@ -32,10 +33,16 @@ gulp.task('html',function(){
|
|||||||
})
|
})
|
||||||
|
|
||||||
gulp.task('js',function(){
|
gulp.task('js',function(){
|
||||||
browserify(config.files.mainJs)
|
browserify(config.files.mainJs, { debug: true })
|
||||||
.transform('babelify', { presets: [ 'es2015', 'react' ]})
|
.transform('babelify', {
|
||||||
|
global: true,
|
||||||
|
presets: [ 'es2015', 'react' ],
|
||||||
|
ignore: /buffer|EventEmitter/
|
||||||
|
})
|
||||||
.transform('eslintify')
|
.transform('eslintify')
|
||||||
|
.transform({ global: true },'uglifyify')
|
||||||
.bundle()
|
.bundle()
|
||||||
|
.pipe(exorcist(__dirname+'/webapp/dist/app.js.map'))
|
||||||
.on('error', console.error.bind(console))
|
.on('error', console.error.bind(console))
|
||||||
.pipe(source('app.js')) // do this or browserify won't work
|
.pipe(source('app.js')) // do this or browserify won't work
|
||||||
.pipe(buffer()) // do this or uglify won't work
|
.pipe(buffer()) // do this or uglify won't work
|
||||||
|
@ -67,7 +67,6 @@ var Profile = React.createClass({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
ee.on('boards',l => {
|
ee.on('boards',l => {
|
||||||
console.log('Arrived boards',l)
|
|
||||||
this.setState({ boards: l })
|
this.setState({ boards: l })
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user