Some checks failed
continuous-integration/drone/pr Build is failing
This way by adjusting a handful of environment variables the Frontend can be used by organisations outside of WTFeG. Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
19 lines
298 B
JavaScript
19 lines
298 B
JavaScript
const { defineConfig } = require('@vue/cli-service');
|
|
|
|
let sav = "";
|
|
for (let e in process.env) {
|
|
if (/VUE_APP_/i.test(e)) {
|
|
sav += `$${e}: "${process.env[e]}";`;
|
|
}
|
|
}
|
|
|
|
module.exports = defineConfig({
|
|
css: {
|
|
loaderOptions: {
|
|
sass: {
|
|
additionalData: sav,
|
|
}
|
|
}
|
|
}
|
|
})
|