commit
98ea9c5c26
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
node_modules
|
20
Gruntfile.js
20
Gruntfile.js
|
@ -276,10 +276,30 @@ module.exports = function(grunt) {
|
||||||
"bower.json",
|
"bower.json",
|
||||||
"composer.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-contrib-clean");
|
||||||
|
grunt.loadNpmTasks('grunt-regex-replace');
|
||||||
|
|
||||||
|
grunt.registerTask("component", [
|
||||||
|
// components-mathjax excludes only PNG fonts
|
||||||
|
"regex-replace:noImageFont",
|
||||||
|
"clean:png",
|
||||||
|
]);
|
||||||
|
|
||||||
grunt.registerTask("template", [
|
grunt.registerTask("template", [
|
||||||
// **Notes** on the template. When instructions say "Pick one", this means commenting out one item (so that it"s not cleaned).
|
// **Notes** on the template. When instructions say "Pick one", this means commenting out one item (so that it"s not cleaned).
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": "^0.4.5",
|
"grunt": "^0.4.5",
|
||||||
"grunt-contrib-clean": "^0.6.0",
|
"grunt-contrib-clean": "^0.6.0",
|
||||||
|
"grunt-regex-replace": "^0.2.6",
|
||||||
"matchdep": "*"
|
"matchdep": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user