www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 85cdc0c13e98222b6474d7de983b91f0b22ccb12
parent 48322fc7e5371bee9e7c9935487875890e56fbea
Author: Min RK <benjaminrk@gmail.com>
Date:   Wed, 29 Jul 2015 21:45:39 -0700

add component task

- removes png image fonts
- disables imageFont in HTML-CSS config
Diffstat:
MGruntfile.js | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)

diff --git a/Gruntfile.js b/Gruntfile.js @@ -276,10 +276,30 @@ module.exports = function(grunt) { "bower.json", "composer.json" ] + }, + "regex-replace": { + // disable image fonts in default HTML-CSS config + noImageFont: { + src: ['unpacked/jax/output/HTML-CSS/config.js'], + actions: [ + { + name: 'nullImageFont', + search: /imageFont:[^,]+,/, + replace: 'imageFont: null,', + } + ] + } } }); grunt.loadNpmTasks("grunt-contrib-clean"); + grunt.loadNpmTasks('grunt-regex-replace'); + + grunt.registerTask("component", [ + // components-mathjax excludes only PNG fonts + "regex-replace:noImageFont", + "clean:png", + ]); grunt.registerTask("template", [ // **Notes** on the template. When instructions say "Pick one", this means commenting out one item (so that it"s not cleaned).