gaia-project/viewer/vue.config.js
2021-03-24 21:51:25 +01:00

26 lines
681 B
JavaScript

/* eslint-disable */
const path = require("path");
const package = require("./package.json");
if (process.argv.includes("lib")) {
module.exports = {
lintOnSave: false,
outputDir: path.join(__dirname, "dist/package"),
// css: {extract: false}
chainWebpack: (config) => {
config.externals({
"bootstrap-vue": "BootstrapVue",
});
},
publicPath: `//cdn.jsdelivr.net/npm/@gaia-project/viewer@${package.version}/dist/package/`,
};
} else {
module.exports = {
lintOnSave: false,
outputDir: path.join(__dirname, "dist/app"),
devServer: {
// For gitpod, it needs to be disabled
disableHostCheck: true,
},
};
}