mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 07:42:31 +08:00
Modularize grunt tasks
This commit is contained in:
18
tasks/options/htmlmin.js
Normal file
18
tasks/options/htmlmin.js
Normal file
@ -0,0 +1,18 @@
|
||||
module.exports = function(config) {
|
||||
return {
|
||||
build: {
|
||||
options:{
|
||||
removeComments: true,
|
||||
collapseWhitespace: true
|
||||
},
|
||||
expand: true,
|
||||
cwd: '<%= tempDir %>',
|
||||
src: [
|
||||
'index.html',
|
||||
'app/panels/**/*.html',
|
||||
'app/partials/**/*.html'
|
||||
],
|
||||
dest: '<%= tempDir %>'
|
||||
}
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user