Commit 8eb3e48b by Torkel Ödegaard

fix(build): fixed build issues with concat not including require_config

parent 24324939
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"grunt-contrib-connect": "~0.5.0", "grunt-contrib-connect": "~0.5.0",
"grunt-contrib-copy": "~0.5.0", "grunt-contrib-copy": "~0.5.0",
"grunt-contrib-cssmin": "~0.6.1", "grunt-contrib-cssmin": "~0.6.1",
"grunt-contrib-htmlmin": "~0.1.3", "grunt-contrib-htmlmin": "~0.6.0",
"grunt-contrib-jshint": "~0.10.0", "grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-less": "~0.7.0", "grunt-contrib-less": "~0.7.0",
"grunt-contrib-requirejs": "~0.4.4", "grunt-contrib-requirejs": "~0.4.4",
......
...@@ -9,15 +9,15 @@ ...@@ -9,15 +9,15 @@
<title>Grafana</title> <title>Grafana</title>
[[if .User.LightTheme]] [[if .User.LightTheme]]
<link rel="stylesheet" href="[[.AppSubUrl]]/css/grafana.light.min.css"> <link rel="stylesheet" href="[[.AppSubUrl]]/public/css/grafana.light.min.css">
[[else]] [[else]]
<link rel="stylesheet" href="[[.AppSubUrl]]/css/grafana.dark.min.css"> <link rel="stylesheet" href="[[.AppSubUrl]]/public/css/grafana.dark.min.css">
[[end]] [[end]]
<link rel="icon" type="image/png" href="[[.AppSubUrl]]/img/fav32.png"> <link rel="icon" type="image/png" href="[[.AppSubUrl]]/public/img/fav32.png">
<base href="[[.AppSubUrl]]/" /> <base href="[[.AppSubUrl]]/" />
<!-- build:js [[.AppSubUrl]]/app/app.js --> <!-- build:js [[.AppSubUrl]]/public/app/app.js -->
<script src="[[.AppSubUrl]]/public/vendor/requirejs/require.js"></script> <script src="[[.AppSubUrl]]/public/vendor/requirejs/require.js"></script>
<script src="[[.AppSubUrl]]/public/app/require_config.js"></script> <script src="[[.AppSubUrl]]/public/app/require_config.js"></script>
<!-- endbuild --> <!-- endbuild -->
......
...@@ -13,7 +13,7 @@ module.exports = function(grunt) { ...@@ -13,7 +13,7 @@ module.exports = function(grunt) {
'karma:test', 'karma:test',
'phantomjs', 'phantomjs',
'css', 'css',
'htmlmin:build', // 'htmlmin:build',
'ngtemplates', 'ngtemplates',
'cssmin:build', 'cssmin:build',
'ngAnnotate:build', 'ngAnnotate:build',
...@@ -34,8 +34,8 @@ module.exports = function(grunt) { ...@@ -34,8 +34,8 @@ module.exports = function(grunt) {
for(var key in summary){ for(var key in summary){
if(summary.hasOwnProperty(key)){ if(summary.hasOwnProperty(key)){
var orig = key.replace(root, root+'/[[.AppSubUrl]]'); var orig = key.replace(root, root+'/[[.AppSubUrl]]/public');
var revved = summary[key].replace(root, root+'/[[.AppSubUrl]]'); var revved = summary[key].replace(root, root+'/[[.AppSubUrl]]/public');
fixed[orig] = revved; fixed[orig] = revved;
} }
} }
......
...@@ -27,7 +27,7 @@ module.exports = function(config) { ...@@ -27,7 +27,7 @@ module.exports = function(config) {
js: { js: {
src: [ src: [
'<%= tempDir %>/vendor/requirejs/require.js', '<%= tempDir %>/vendor/requirejs/require.js',
'<%= tempDir %>/app/components/require.config.js', '<%= tempDir %>/app/require_config.js',
'<%= tempDir %>/app/app.js', '<%= tempDir %>/app/app.js',
], ],
dest: '<%= genDir %>/app/app.js' dest: '<%= genDir %>/app/app.js'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment