mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 01:00:24 +08:00
fix(build): fixed build after change that made panels into proper plugins
This commit is contained in:
@ -62,11 +62,11 @@ module.exports = function(config,grunt) {
|
||||
];
|
||||
|
||||
var fs = require('fs');
|
||||
var panelPath = config.srcDir + '/app/panels';
|
||||
var panelPath = config.srcDir + '/app/plugins/panels';
|
||||
|
||||
// create a module for each directory in public/app/panels/
|
||||
fs.readdirSync(panelPath).forEach(function (panelName) {
|
||||
requireModules[0].include.push('app/panels/'+panelName+'/module');
|
||||
requireModules[0].include.push('app/plugins/panels/'+panelName+'/module');
|
||||
});
|
||||
|
||||
return { options: options };
|
||||
|
Reference in New Issue
Block a user