tethys.frontend/vue.config.js

35 lines
855 B
JavaScript
Raw Normal View History

const webpack = require("webpack");
2021-11-17 11:03:44 +00:00
module.exports = {
publicPath: "/",
// chainWebpack: config => {
// config
// .plugin('define')
// .tap(args => {
// args[0] = {
// ...args[0],
// VUE_APP_PORTAL: JSON.stringify(process.env.PORTAL),
// // other stuff
// }
// return args
// })
// },
pages: {
index: {
// entry for the page
entry: "src/main.ts",
title: "TETHYS - Research Data Repository",
},
},
devServer: {
disableHostCheck: true,
},
configureWebpack: {
plugins: [
new webpack.DefinePlugin({
VUE_APP_PORTAL: JSON.stringify(process.env.VUE_APP_PORTAL),
}),
],
},
};