From 2a97838c4106456424a501bd7e20e1a63e299dbe Mon Sep 17 00:00:00 2001 From: timiyay Date: Sun, 18 Sep 2016 16:12:31 +1000 Subject: [PATCH] Allow fullPaths to be configurable from the consuming app --- lib/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 3b2e06a..94bdb58 100644 --- a/lib/index.js +++ b/lib/index.js @@ -31,14 +31,15 @@ module.exports = { app = findHost.call(this); var enableSourcemaps = app.options.sourcemaps && app.options.sourcemaps.enabled && app.options.sourcemaps.extensions.indexOf('js') > -1; + var customConfig = app.project.config(app.env).browserify || {}; this.app = app; this.options = { root: this.app.project.root, - browserifyOptions: app.project.config(app.env).browserify || {}, + browserifyOptions: customConfig, enableSourcemap: enableSourcemaps, - fullPaths: app.env !== 'production' + fullPaths: (customConfig.fullPaths === undefined) ? (app.env !== 'production') : customConfig.fullPaths }; app.import('browserify/browserify.js');