1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-10 12:24:20 +01:00

introduced source maps, and fixed uglify again

This commit is contained in:
Enrico Fasoli 2015-11-14 17:33:43 +01:00
parent 5a71c39bb9
commit 962dc21aab
2 changed files with 9 additions and 3 deletions

View File

@ -5,6 +5,7 @@ var minifyCss = require('gulp-minify-css')
var browserify = require('browserify')
var uglify = require('gulp-uglify')
var clean = require('gulp-clean')
var exorcist = require('exorcist')
var connect = require('gulp-connect')
var config = {
@ -32,10 +33,16 @@ gulp.task('html',function(){
})
gulp.task('js',function(){
browserify(config.files.mainJs)
.transform('babelify', { presets: [ 'es2015', 'react' ]})
browserify(config.files.mainJs, { debug: true })
.transform('babelify', {
global: true,
presets: [ 'es2015', 'react' ],
ignore: /buffer|EventEmitter/
})
.transform('eslintify')
.transform({ global: true },'uglifyify')
.bundle()
.pipe(exorcist(__dirname+'/webapp/dist/app.js.map'))
.on('error', console.error.bind(console))
.pipe(source('app.js')) // do this or browserify won't work
.pipe(buffer()) // do this or uglify won't work

View File

@ -67,7 +67,6 @@ var Profile = React.createClass({
}
})
ee.on('boards',l => {
console.log('Arrived boards',l)
this.setState({ boards: l })
})
},