Selaa lähdekoodia

fix(build): fixed partials so they are included in optimized js file, fixes #2997

Torkel Ödegaard 10 vuotta sitten
vanhempi
commit
62c908a905
3 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. 0 1
      tasks/build_task.js
  2. 0 1
      tasks/options/concat.js
  3. 1 1
      tasks/options/ngtemplates.js

+ 0 - 1
tasks/build_task.js

@@ -23,7 +23,6 @@ module.exports = function(grunt) {
     'filerev',
     'remapFilerev',
     'usemin',
-    'clean:temp',
     'uglify:genDir'
   ]);
 

+ 0 - 1
tasks/options/concat.js

@@ -24,7 +24,6 @@ module.exports = function(config) {
       ],
       dest: '<%= genDir %>/css/grafana.light.min.css'
     },
-
     js: {
       src: [
         '<%= tempDir %>/vendor/requirejs/require.js',

+ 1 - 1
tasks/options/ngtemplates.js

@@ -6,7 +6,7 @@ module.exports = function(config) {
       dest: '<%= genDir %>/app/components/partials.js',
       options: {
         bootstrap: function(module, script) {
-          return "define('components/partials', ['angular'], function(angular) { \n" +
+          return "define('app/components/partials', ['angular'], function(angular) { \n" +
             "angular.module('grafana').run(['$templateCache', function($templateCache) { \n" +
                 script +
             '\n}]);' +