f7be81d6 by Adam Heath

Add more conditionals around buildList targets.

1 parent 70513966
......@@ -565,7 +565,9 @@ module.exports = function (grunt) {
if (mpConfig.bower) {
buildList.push('requirejs'); // script
}
if (mpConfig.css) {
buildList.push('copy:css'); // css
}
if (mpConfig.images) {
var minify = mpConfig.images.options.minify;
if (minify === undefined || minify) {
......@@ -579,8 +581,12 @@ module.exports = function (grunt) {
}
}
//buildList.push('autoprefixer'); // css
if (mpConfig.punch) {
buildList.push('concat:generated'); // montyPython
}
if (mpConfig.css) {
buildList.push('cssmin'); // montyPython
}
//'uglify:dist');
buildList.push('copy:dist');
//'modernizr');
......@@ -589,8 +595,10 @@ module.exports = function (grunt) {
}
if (mpConfig.useRev) {
buildList.push('rev:dist'); // montyPython
if (mpConfig.css) {
buildList.push('rev:css'); // montyPython
}
}
buildList.push('fixRequireConfig');
if (mpConfig.bower) {
buildList.push('concat:requirejs'); // montyPython
......@@ -602,7 +610,9 @@ module.exports = function (grunt) {
buildList.push('uglify:montyPython'); // montyPython
}
buildList.push('usemin:html'); // montyPython
if (mpConfig.css) {
buildList.push('usemin:css'); // montyPython
}
buildList.push('htmlmin'); // montyPython
buildList.push('deploy'); // montyPython
......