feat(fonts): download fonts from grafana instead of CDN

Makes its possible to run grafana without internet access.
The performance hit by not using a cdn is very small since
most grafana instances are setup on locally.

closes #4223
This commit is contained in:
bergquist
2016-03-16 10:39:45 +01:00
parent 0d7eb18d7b
commit 99e068643b
43 changed files with 441 additions and 152 deletions

View File

@@ -22,6 +22,11 @@ module.exports = function(config) {
dest: '<%= genDir %>/css/grafana.light.min.css'
},
cssFonts: {
src: [ '<%= genDir %>/css/fonts.css' ],
dest: '<%= genDir %>/css/fonts.min.css'
},
js: {
src: [
'<%= genDir %>/vendor/npm/es5-shim/es5-shim.js',

View File

@@ -6,6 +6,7 @@ module.exports = function(config) {
files: {
"<%= genDir %>/css/grafana.dark.css": "<%= srcDir %>/sass/grafana.dark.scss",
"<%= genDir %>/css/grafana.light.css": "<%= srcDir %>/sass/grafana.light.scss",
"<%= genDir %>/css/fonts.css": "<%= srcDir %>/sass/fonts.scss",
}
}
};