mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
trying to get revision asset replacements to work with different paths
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = function(grunt) {
|
||||
'filerev',
|
||||
'usemin',
|
||||
'clean:temp',
|
||||
'uglify:dest'
|
||||
//'uglify:dest'
|
||||
]);
|
||||
|
||||
grunt.registerTask('build:grafanaVersion', function() {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
module.exports = function(config) {
|
||||
"use strict";
|
||||
|
||||
return {
|
||||
cssDark: {
|
||||
src: [
|
||||
@@ -28,7 +30,7 @@ module.exports = function(config) {
|
||||
js: {
|
||||
src: [
|
||||
'<%= destDir %>/vendor/require/require.js',
|
||||
'<%= destDir %>/app/components/require.standalone.js',
|
||||
'<%= destDir %>/app/components/require.<%= mode %>.js',
|
||||
'<%= destDir %>/app/app.js',
|
||||
],
|
||||
dest: '<%= destDir %>/app/app.js'
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
module.exports = function(config) {
|
||||
return {
|
||||
html: '<%= destDir %>/index.html',
|
||||
html: [
|
||||
'<%= destDir %>/views/index.html',
|
||||
'<%= destDir %>/index.html',
|
||||
],
|
||||
options: {
|
||||
assetsDirs: ['<%= destDir %>']
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
module.exports = function(config) {
|
||||
return {
|
||||
html: 'tmp/index.html',
|
||||
html: [
|
||||
'tmp/index.html',
|
||||
'tmp/views/index.html',
|
||||
]
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user