mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 17:52:24 +08:00
Fixed asset revving issue with css files
This commit is contained in:
@ -1,11 +1,29 @@
|
||||
module.exports = function(config) {
|
||||
module.exports = function() {
|
||||
'use strict';
|
||||
|
||||
return {
|
||||
html: [
|
||||
'<%= destDir %>/views/index.html',
|
||||
'<%= destDir %>/index.html',
|
||||
],
|
||||
options: {
|
||||
assetsDirs: ['<%= destDir %>']
|
||||
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';
|
||||
// }]
|
||||
// ]
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user