main interface ok
added grunt-svg2png and set svg 2 png fall back mixin added bubbles and stars added nav_pos move on chapter preview
This commit is contained in:
@@ -34,12 +34,24 @@ module.exports = function (grunt) {
|
||||
},
|
||||
dist: { src: 'css/*.css' }
|
||||
},
|
||||
svg2png: {
|
||||
assets: {
|
||||
// specify files in array format with multiple src-dest mapping
|
||||
files: [
|
||||
// rasterize all SVG files in "img" and its subdirectories to "img/png"
|
||||
// { src: ['assets/img/*.svg'], dest: 'assets/img/png/' },
|
||||
// rasterize SVG file to same directory
|
||||
{ src: ['assets/img/*.svg'] }
|
||||
]
|
||||
}
|
||||
}
|
||||
});
|
||||
grunt.loadNpmTasks('grunt-contrib-compass');
|
||||
grunt.loadNpmTasks('grunt-contrib-sass');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-postcss');
|
||||
grunt.loadNpmTasks('grunt-svg2png');
|
||||
|
||||
|
||||
grunt.registerTask('default', ['compass', 'postcss']);
|
||||
grunt.registerTask('default', ['compass', 'postcss', 'svg2png']);
|
||||
};
|
||||
Reference in New Issue
Block a user