mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
progress on being able to use exact same code base for backend and standalone version, building optimized build needs a little more work
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() {
|
||||
|
||||
@@ -28,7 +28,7 @@ module.exports = function(config) {
|
||||
js: {
|
||||
src: [
|
||||
'<%= destDir %>/vendor/require/require.js',
|
||||
'<%= destDir %>/app/components/require.config.js',
|
||||
'<%= destDir %>/app/components/require.standalone.js',
|
||||
'<%= destDir %>/app/app.js',
|
||||
],
|
||||
dest: '<%= destDir %>/app/app.js'
|
||||
|
||||
@@ -8,7 +8,7 @@ module.exports = function(config,grunt) {
|
||||
dir: '<%= destDir %>',
|
||||
baseUrl: './app',
|
||||
|
||||
mainConfigFile: '<%= tempDir %>/app/components/require.config.js',
|
||||
mainConfigFile: '<%= tempDir %>/app/components/require.standalone.js',
|
||||
modules: [], // populated below,
|
||||
|
||||
optimize: 'none',
|
||||
@@ -63,7 +63,8 @@ module.exports = function(config,grunt) {
|
||||
'directives/all',
|
||||
'filters/all',
|
||||
'controllers/all',
|
||||
'routes/standalone/default',
|
||||
'routes/standalone/all',
|
||||
'routes/backend/all',
|
||||
'components/partials',
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user