Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 1301adf

Browse files
committed
refactor(uglifyjs): moved common config values to environment variables
1 parent 961c76b commit 1301adf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config/uglifyjs.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ module.exports = {
66
/**
77
* sourceFile: The javascript file to minify
88
*/
9-
sourceFile: 'main.js',
9+
sourceFile: process.env.IONIC_OUTPUT_JS_FILE_NAME,
1010

1111
/**
1212
* destFileName: file name for the minified js in the build dir
1313
*/
14-
destFileName: 'main.js',
14+
destFileName: process.env.IONIC_OUTPUT_JS_FILE_NAME,
1515

1616
/**
1717
* inSourceMap: file name for the input source map
1818
*/
19-
inSourceMap: 'main.js.map',
19+
inSourceMap: process.env.IONIC_OUTPUT_JS_MAP_FILE_NAME,
2020

2121
/**
2222
* outSourceMap: file name for the output source map
2323
*/
24-
outSourceMap: 'main.js.map',
24+
outSourceMap: process.env.IONIC_OUTPUT_JS_MAP_FILE_NAME,
2525

2626
/**
2727
* mangle: uglify 2's mangle option

0 commit comments

Comments
 (0)