javascript - How to create a source map for my compiled JS files with mincer? -


i want compile coffeescript files 1 js file using mincer , gulp. have app.coffee file requires other files. gulp task uses gulp-mincer , looks that:

var gulp = require('gulp'); var mincer = require('mincer'); var mince = require('gulp-mincer');  gulp.task('mincer', function(){   var env = new mincer.environment();   env.enable('source_maps');   env.appendpath('src/coffee');    return gulp.src('src/coffee/**/app.*')     .pipe(mince(env))     .pipe(gulp.dest('public/js')); }); 

if run task 1 js file required code in no source map. have source map file?


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -