Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
Prev Previous commit
Next Next commit
refactor(uglifyjs): moved common config values to environment variables
  • Loading branch information
danbucholtz committed Dec 10, 2016
commit c4abd822004b0f82205094de0a69c68f66d6ac2d
8 changes: 4 additions & 4 deletions config/uglifyjs.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ module.exports = {
/**
* sourceFile: The javascript file to minify
*/
sourceFile: 'main.js',
sourceFile: process.env.IONIC_OUTPUT_JS_FILE_NAME,

/**
* destFileName: file name for the minified js in the build dir
*/
destFileName: 'main.js',
destFileName: process.env.IONIC_OUTPUT_JS_FILE_NAME,

/**
* inSourceMap: file name for the input source map
*/
inSourceMap: 'main.js.map',
inSourceMap: process.env.IONIC_OUTPUT_JS_MAP_FILE_NAME,

/**
* outSourceMap: file name for the output source map
*/
outSourceMap: 'main.js.map',
outSourceMap: process.env.IONIC_OUTPUT_JS_MAP_FILE_NAME,

/**
* mangle: uglify 2's mangle option
Expand Down