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
}
buildList.push('copy:css'); // css
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
buildList.push('concat:generated'); // montyPython
buildList.push('cssmin'); // montyPython
if (mpConfig.punch) {
buildList.push('concat:generated'); // montyPython
}
if (mpConfig.css) {
buildList.push('cssmin'); // montyPython
}
//'uglify:dist');
buildList.push('copy:dist');
//'modernizr');
......@@ -589,7 +595,9 @@ module.exports = function (grunt) {
}
if (mpConfig.useRev) {
buildList.push('rev:dist'); // montyPython
buildList.push('rev:css'); // montyPython
if (mpConfig.css) {
buildList.push('rev:css'); // montyPython
}
}
buildList.push('fixRequireConfig');
if (mpConfig.bower) {
......@@ -602,7 +610,9 @@ module.exports = function (grunt) {
buildList.push('uglify:montyPython'); // montyPython
}
buildList.push('usemin:html'); // montyPython
buildList.push('usemin:css'); // montyPython
if (mpConfig.css) {
buildList.push('usemin:css'); // montyPython
}
buildList.push('htmlmin'); // montyPython
buildList.push('deploy'); // montyPython
......