mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
do not load plugins in dev mode
This commit is contained in:
parent
4f3a34d356
commit
d29a889818
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ const settingsController = {
|
|||
|
||||
// load custom plugins
|
||||
const plugins_path = path.resolve(process.env.cwd || '', 'plugins')
|
||||
if (fs.existsSync(plugins_path)) {
|
||||
if (process.env.NODE_ENV === 'production' && fs.existsSync(plugins_path)) {
|
||||
const notifier = require('../../notifier')
|
||||
const pluginsFile = fs.readdirSync(plugins_path).filter(e => path.extname(e).toLowerCase() === '.js')
|
||||
pluginsFile.forEach( pluginFile => {
|
||||
|
|
Loading…
Reference in a new issue