Define PRODUCTION global variable
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
Родитель
98d6848882
Коммит
3fe3aeaabd
|
@ -1,6 +1,7 @@
|
|||
module.exports = {
|
||||
globals: {
|
||||
EMOJIS: true,
|
||||
PRODUCTION: true,
|
||||
SCOPE_VERSION: true,
|
||||
TRANSLATIONS: true,
|
||||
oc_userconfig: true,
|
||||
|
|
|
@ -26,5 +26,6 @@ import 'regenerator-runtime/runtime'
|
|||
|
||||
global.OC = OC
|
||||
|
||||
global.TRANSLATIONS = []
|
||||
global.PRODUCTION = false
|
||||
global.SCOPE_VERSION = 1
|
||||
global.TRANSLATIONS = []
|
||||
|
|
|
@ -147,6 +147,7 @@ module.exports = async () => {
|
|||
const translations = await loadTranslations(path.resolve(__dirname, './l10n'))
|
||||
|
||||
config.plugins.push(new DefinePlugin({
|
||||
PRODUCTION: JSON.stringify(!isDev),
|
||||
SCOPE_VERSION,
|
||||
TRANSLATIONS: JSON.stringify(translations),
|
||||
}))
|
||||
|
|
Загрузка…
Ссылка в новой задаче