Skip to content

Commit

Permalink
Enable mangling and remove less.js from the compiled version, closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
kkamkou committed Jun 21, 2016
1 parent c888f5a commit b181f4a
Show file tree
Hide file tree
Showing 6 changed files with 335 additions and 332 deletions.
6 changes: 4 additions & 2 deletions Jakefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@ task('pack-vendors', ['copy-sources'], {async: true}, function () {
match;

while ((match = regex.exec(body)) !== null) {
fileSet.push(path.join(CONSTANTS.DIR_SRC, match[1]));
if (!~match[1].indexOf('less/')) {
fileSet.push(path.join(CONSTANTS.DIR_SRC, match[1]));
}
}

fs.writeFile(
path.join(CONSTANTS.DIR_BUILD_APP, 'vendors.js'),
uglify.minify(fileSet, {mangle: false}).code,
uglify.minify(fileSet).code,
function () {
console.log('- Packed to "vendors.js":', os.EOL, fileSet);
complete();
Expand Down
Empty file removed build/.keepdir
Empty file.
21 changes: 11 additions & 10 deletions src/vendors/angularjs/angular-route.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b181f4a

Please sign in to comment.