|
| 1 | +{ |
| 2 | + appDir: '..', |
| 3 | + baseUrl: 'js', |
| 4 | + mainConfigFile: '../js/config/require.js', |
| 5 | + dir: '../../../build_stage/bluetooth', |
| 6 | + |
| 7 | + // Set the path to "empty" to prevent the scripts defining global objects |
| 8 | + // from being merged or they are removed after the optimization process, |
| 9 | + // which makes the objects inaccessible by reference. |
| 10 | + // If the inquiries to the object are all performed by requirejs, we can |
| 11 | + // remove the path of the object from the following list. |
| 12 | + paths: { |
| 13 | + 'shared/bluetooth_helper': 'empty:' |
| 14 | + }, |
| 15 | + |
| 16 | + findNestedDependencies: true, |
| 17 | + |
| 18 | + // Be sure to normalize all define() calls by extracting |
| 19 | + // dependencies so Function toString is not needed, and |
| 20 | + // lower capability devices like Tarako can optimize |
| 21 | + // memory by discarding function sources. This is |
| 22 | + // automatically done when an 'optimize' value other than |
| 23 | + // 'none' is used. This setting makes sure it happens for |
| 24 | + // builds where 'none' is used for 'optimize'. |
| 25 | + normalizeDirDefines: 'all', |
| 26 | + |
| 27 | + // optimize is now passed via Makefile's GAIA_SETTINGS_MINIFY |
| 28 | + // default is none if not passed at all. |
| 29 | + // optimize: 'none', |
| 30 | + |
| 31 | + // Just strip comments, no code compression or mangling. |
| 32 | + // Only active if optimize: 'uglify2' |
| 33 | + uglify2: { |
| 34 | + // Comment out the output section to get rid of line |
| 35 | + // returns and tabs spacing. |
| 36 | + output: { |
| 37 | + beautify: false |
| 38 | + }, |
| 39 | + compress: true, |
| 40 | + mangle: true |
| 41 | + }, |
| 42 | + |
| 43 | + fileExclusionRegExp: /^\.|^test$|^build$/, |
| 44 | + |
| 45 | + // Keeping build dir since Makefile cleans it up and |
| 46 | + // preps build dir with the shared directory |
| 47 | + keepBuildDir: true, |
| 48 | + removeCombined: true |
| 49 | +} |
0 commit comments