grafana/tasks/options/usemin.js
2015-03-13 11:11:31 +01:00

30 lines
734 B
JavaScript

module.exports = function() {
'use strict';
return {
html: [
'<%= destDir %>/views/index.html',
],
options: {
assetsDirs: ['<%= destDir %>'],
patterns: {
css: [
[/(\.css)/, 'Replacing reference to image.png']
]
}
// blockReplacements: {
// css: function (block) {
// console.log('aaaaaaaaaaaaa', block);
// return '<link rel="stylesheet" href="aaaa' + block.dest + '">';
// }
// }
// css: [
// [/(grafana\.light\.min\.css)/, 'Replacing reference to light css', function(asd) {
// console.log("Match", asd);
// return 'css/grafana.light.min.css';
// }]
// ]
}
};
};