scalableminds / amd-optimize

An AMD (RequireJS) optimizer that's stream-friendly. Made for gulp.
MIT License
162 stars 29 forks source link

Add module name into file data #41

Open tamtakoe opened 9 years ago

tamtakoe commented 9 years ago

Add module name (which you put into define('module/path/or/name', ...)) into file data:

cwd: ...
base: ...
path: ...
contents: ...
data: {
   amdName: 'module/path/or/name'
   amdDependencies: [...] //also useful
}

See: https://github.com/colynb/gulp-data