trying to get revision asset replacements to work with different paths

This commit is contained in:
Torkel Ödegaard
2014-12-31 19:01:10 +01:00
parent 9c3cd87bee
commit 33e3fc70b2
6 changed files with 74 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ module.exports = function(grunt) {
'filerev',
'usemin',
'clean:temp',
'uglify:dest'
//'uglify:dest'
]);
grunt.registerTask('build:grafanaVersion', function() {

View File

@@ -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'

View File

@@ -1,5 +1,11 @@
module.exports = function(config) {
return {
html: '<%= destDir %>/index.html',
html: [
'<%= destDir %>/views/index.html',
'<%= destDir %>/index.html',
],
options: {
assetsDirs: ['<%= destDir %>']
}
};
};

View File

@@ -1,5 +1,8 @@
module.exports = function(config) {
return {
html: 'tmp/index.html',
html: [
'tmp/index.html',
'tmp/views/index.html',
]
};
};