6bf90cf7 by Adam Heath

Allow usemin to scan html files in scripts/view.

1 parent 98e725cf
......@@ -350,7 +350,10 @@ module.exports = function (grunt) {
options: {
staging: '.grunt/usemin',
},
src: htmlSourceDir + '/!(scripts){,**/}*.html',
src: [
htmlSourceDir + '/!(scripts){,**/}*.html',
htmlSourceDir + '/scripts/view/**/*.html',
],
},
};
initConfig.usemin = {
......@@ -362,7 +365,10 @@ module.exports = function (grunt) {
dirs: ['dist/build'],
assetsDirs: ['dist/build'],
},
src: ['dist/build/!(scripts){,**/}*.html'],
src: [
'dist/build/!(scripts){,**/}*.html',
'dist/build/scripts/view/**/*.html',
],
},
};
initConfig.clean.montyPython.files[0].src.push('.grunt/usemin');
......@@ -526,6 +532,7 @@ module.exports = function (grunt) {
optimize: 'none',
removeCombined: true,
skipDirOptimize: true,
inlineText: false,
//generateSourceMaps: true,
dir: 'dist/build/scripts',
......