2022-05-31 14:37:41 +00:00
|
|
|
/* eslint @typescript-eslint/no-var-requires: "off" */
|
2021-12-23 13:54:17 +00:00
|
|
|
const webpack = require("webpack");
|
2022-05-31 14:37:41 +00:00
|
|
|
// const { defineConfig } = require("@vue/cli-service");
|
|
|
|
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
|
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-05-31 14:37:41 +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({
|
2022-09-08 10:03:12 +00:00
|
|
|
APP_URL: JSON.stringify(process.env.APP_URL),
|
2021-12-23 13:54:17 +00:00
|
|
|
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
|
|
|
}),
|
2022-05-31 14:37:41 +00:00
|
|
|
new NodePolyfillPlugin(),
|
2021-11-30 14:26:40 +00:00
|
|
|
],
|
2021-12-23 13:54:17 +00:00
|
|
|
},
|
|
|
|
};
|