Skip to content

Commit d90ab70

Browse files
committed
Uglify packages if debug is false
Update [email protected]
1 parent 91baf08 commit d90ab70

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

lib/configs/default.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ var path = require('path');
55
// Base structure for a configuration
66
module.exports = function(options) {
77
options = _.merge(options, {
8+
// Debug
9+
'debug': !!process.env.DEBUG,
10+
811
// Port for running the webserver
912
'port': process.env.PORT || 3000,
1013

lib/packages.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ var init = function(config) {
3131
'engine': "codebox",
3232
'version': pkg.version,
3333
'folder': config.packages.root,
34-
'lessInclude': path.resolve(__dirname, "../editor/resources/stylesheets/variables.less")
34+
'lessInclude': path.resolve(__dirname, "../editor/resources/stylesheets/variables.less"),
35+
'uglify': !config.debug
3536
});
3637

3738
manager.on("add", function(pkg) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dependencies": {
3030
"q": "~1.2.0",
3131
"lodash": "2.4.1",
32-
"pkgm": "3.1.0",
32+
"pkgm": "3.2.0",
3333
"express": "4.6.1",
3434
"express-session": "1.7.0",
3535
"wrench": "1.5.8",

0 commit comments

Comments
 (0)