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
c49631dc
authored
2016-05-25 11:25:46 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add a way to disable svgmin.
1 parent
44ff55f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
grunt-monty-python.js
grunt-monty-python.js
View file @
c49631d
...
...
@@ -780,12 +780,15 @@ module.exports = function (grunt) {
}
if
(
mpConfig
.
images
)
{
var
minify
=
mpConfig
.
images
.
options
.
minify
;
var
svgmin
=
mpConfig
.
images
.
options
.
svgmin
;
if
(
minify
===
undefined
||
minify
)
{
copyList
.
push
(
'imagemin'
);
// image
}
else
{
copyList
.
push
(
'copy:img'
);
// image
}
minifyList
.
push
(
'svgmin'
);
// image
if
(
svgmin
===
undefined
||
svgmin
)
{
minifyList
.
push
(
'svgmin'
);
// image
}
revList
.
push
(
'rev:img'
);
// image
}
if
(
mpConfig
.
fonts
)
{
...
...
Please
register
or
sign in
to post a comment