diff --git a/Gulpfile.js b/Gulpfile.js index fb0d440..8ced66d 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -192,8 +192,11 @@ var build = function(options) { file.contents = res; next(null, file); }); - })) - .pipe(preprocess({ context: { DEBUG: false } })); + })); + + if (options.version !== 'dev') { + compiled.pipe(preprocess({ context: { DEBUG: false } })); + } var build = compiled.pipe(clone()) .pipe(header(banner + '\n' + license + '\n\n', { context: options })) diff --git a/package.json b/package.json index af441bb..ea181e0 100644 --- a/package.json +++ b/package.json @@ -49,8 +49,7 @@ "yuidocjs": "^0.9.0" }, "scripts": { - "dev": "npm install && gulp", - "test": "gulp test" + "test": "gulp && gulp test" }, "dependencies": {} }