Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Grunt: Added Image Replace Module. Converted all Image URLs to base64…

… values
  • Loading branch information...
commit c43e2cdcf2f142a31548cfcf1d58bd3e20fc1264 1 parent 15651be
Michael Dabydeen authored
View
5,295 dist/BlackBerry-JQM-all.css
1 addition, 5,294 deletions not shown
View
2  dist/BlackBerry-JQM-all.min.css
1 addition, 1 deletion not shown
View
15 grunt.js
@@ -220,14 +220,22 @@ module.exports = function(grunt) {
dest: 'dist/<%= pkg.name %>-all.min.js'
},
latest_all_min_css: {
- src: '<config:cssmin.all.dest>',
+ src: '<config:imageEmbed.all.dest>',
dest: 'dist/<%= pkg.name %>-all.min.css'
}
- }
+ },
+ imageEmbed: {
+ all: {
+ src: '<config:cssmin.all.dest>',
+ dest: 'dist/<%= pkg.name %>-all.css',
+ deleteAfterEncoding : false,
+ options: {}
+ }
+ }
});
// Default task.
- grunt.registerTask('default', 'concat:less less concat min cssmin copy');
+ grunt.registerTask('default', 'concat:less less concat min cssmin imageEmbed copy');
grunt.registerTask('htmllint', 'htmllint');
grunt.registerTask('samples', 'exec:samples');
grunt.loadNpmTasks('grunt-html');
@@ -235,5 +243,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-less');
grunt.loadNpmTasks('grunt-clean');
grunt.loadNpmTasks('grunt-exec');
+ grunt.loadNpmTasks('grunt-image-embed');
grunt.loadTasks('src/tasks');
};
View
3  package.json
@@ -23,7 +23,8 @@
"grunt-less": "*",
"grunt-clean": "*",
"grunt-exec": "*",
- "grunt-html": "*"
+ "grunt-html": "*",
+ "grunt-image-embed": "*"
},
"keywords": []
}
Please sign in to comment.
Something went wrong with that request. Please try again.