ef4 / ember-browserify

ember-cli addon for easily loading CommonJS packages from npm via browserify.
MIT License
172 stars 28 forks source link

Displaying actual path instead of relative path #28

Closed changeweb closed 9 years ago

changeweb commented 9 years ago

Ember browserify is working fine. I see something like this in vendor.js

define('npm:markdown-it-sanitizer', function(){ return { 'default': require('markdown-it-sanitizer')};})
},{"markdown-it-sanitizer":"D:\\....\\my-new-app\\node_modules\\markdown-it-sanitizer\\index.js".....

I think it would be nice if it shows relative path like my-new-app\\node_modules\\markdown-it-sanitizer\\index.js instead of the actual path.

ef4 commented 9 years ago

That's is controlled by browserify's fullPaths option.

By default, we turn it on in development because it gives much faster rebuilds, because browserify's caching doesn't work well with it off. We turn it off for production builds to get smaller output files.

changeweb commented 9 years ago

@ef4 Yeah, I see it in development builds. I've not tried it still for production builds.