EzDevInfo.com

mincer

Sprockets inspired web assets compiler for Node.JS mincer 1.2.5 API documentation

How to disable connect-assets file name digest

Does anyone know a way to disable the digest/hash of connect-assets/mincer? I know it's bla bla important in their opinion but it's not as useful when developing


Source: (StackOverflow)

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

I want to compile some coffeescript files into one JS file using mincer and Gulp. I have an app.coffee file which requires all other files. My gulp task uses gulp-mincer and looks like 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 I run this task I get one JS file with all required code in it but no source map. What I have to do to get also the source map file?


Source: (StackOverflow)

Advertisements