refs #5815 ci: set custom NODE_ENV in environment
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Javier Segarra 2023-11-22 12:40:12 +01:00
parent c870e8b367
commit 25e7c3231a
1 changed files with 9 additions and 1 deletions

View File

@ -66,7 +66,9 @@ module.exports = configure(function (/* ctx */) {
// publicPath: '/', // publicPath: '/',
// analyze: true, // analyze: true,
// env: {}, // env: {},
// rawDefine: {} rawDefine: {
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
},
// ignorePublicFolder: true, // ignorePublicFolder: true,
// minify: false, // minify: false,
// polyfillModulePreload: true, // polyfillModulePreload: true,
@ -79,6 +81,12 @@ module.exports = configure(function (/* ctx */) {
viteConf.build.modulePreload = { viteConf.build.modulePreload = {
polyfill: false, polyfill: false,
}; };
// this.env={
// 'process.env.NODE_ENV': 'test1',
// NODE_ENV: 'test2'
// }
}, },
// viteVuePluginOptions: {}, // viteVuePluginOptions: {},