2021-12-23 13:54:17 +00:00
|
|
|
const webpack = require("webpack");
|
2021-11-30 14:26:40 +00:00
|
|
|
|
2021-11-17 11:03:44 +00:00
|
|
|
module.exports = {
|
2021-11-30 14:26:40 +00:00
|
|
|
publicPath: "/",
|
|
|
|
// chainWebpack: config => {
|
|
|
|
// config
|
|
|
|
// .plugin('define')
|
|
|
|
// .tap(args => {
|
|
|
|
// args[0] = {
|
|
|
|
// ...args[0],
|
|
|
|
// VUE_APP_PORTAL: JSON.stringify(process.env.PORTAL),
|
|
|
|
// // other stuff
|
|
|
|
// }
|
|
|
|
// return args
|
|
|
|
// })
|
|
|
|
// },
|
2021-12-23 13:54:17 +00:00
|
|
|
pages: {
|
|
|
|
index: {
|
|
|
|
// entry for the page
|
|
|
|
entry: "src/main.ts",
|
|
|
|
title: "TETHYS - Research Data Repository",
|
|
|
|
},
|
|
|
|
},
|
2022-01-14 11:57:06 +00:00
|
|
|
devServer: {
|
|
|
|
disableHostCheck: true,
|
|
|
|
},
|
2021-12-23 13:54:17 +00:00
|
|
|
configureWebpack: {
|
2021-11-30 14:26:40 +00:00
|
|
|
plugins: [
|
2021-12-23 13:54:17 +00:00
|
|
|
new webpack.DefinePlugin({
|
|
|
|
VUE_APP_PORTAL: JSON.stringify(process.env.VUE_APP_PORTAL),
|
2022-01-21 13:02:28 +00:00
|
|
|
SOLR_HOST: JSON.stringify(process.env.SOLR_HOST),
|
|
|
|
SOLR_CORE: JSON.stringify(process.env.SOLR_CORE),
|
2021-12-23 13:54:17 +00:00
|
|
|
}),
|
2021-11-30 14:26:40 +00:00
|
|
|
],
|
2021-12-23 13:54:17 +00:00
|
|
|
},
|
|
|
|
};
|