Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
grunt-monty-python
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6bf90cf7
authored
2015-12-15 16:15:58 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Allow usemin to scan html files in scripts/view.
1 parent
98e725cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
grunt-monty-python.js
grunt-monty-python.js
View file @
6bf90cf
...
...
@@ -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'
,
...
...
Please
register
or
sign in
to post a comment