2020-06-06 20:03:55 +02:00
|
|
|
module.exports = {
|
|
|
|
publicPath: '/',
|
|
|
|
outputDir: 'dist',
|
|
|
|
|
|
|
|
// This is to make all static file requests generated by Vue to go to
|
|
|
|
// /frontend/*. However, this also ends up creating a `dist/frontend`
|
|
|
|
// directory and moves all the static files in it. The physical directory
|
|
|
|
// and the URI for assets are tightly coupled. This is handled in the Go app
|
|
|
|
// by using stuffbin aliases.
|
|
|
|
assetsDir: 'frontend',
|
2020-08-25 15:45:32 +02:00
|
|
|
|
2020-06-06 20:03:55 +02:00
|
|
|
// Move the index.html file from dist/index.html to dist/frontend/index.html
|
|
|
|
indexPath: './frontend/index.html',
|
|
|
|
|
|
|
|
productionSourceMap: false,
|
2020-07-06 17:54:08 +02:00
|
|
|
filenameHashing: true,
|
2020-10-03 00:58:50 +02:00
|
|
|
|
|
|
|
devServer: {
|
|
|
|
port: process.env.LISTMONK_FRONTEND_PORT || 8080,
|
|
|
|
proxy: {
|
2020-10-18 19:40:48 +02:00
|
|
|
'^/api': {
|
|
|
|
target: process.env.LISTMONK_API_URL || 'http://127.0.0.1:9000'
|
2020-10-03 00:58:50 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-06 20:03:55 +02:00
|
|
|
};
|