From d795d9bf3841a3f776a547def0daf10e19259658 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 4 Aug 2021 09:23:07 +0200 Subject: [PATCH] Client - update build config --- .gitignore | 1 + fittrackee_client/vue.config.js | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 fittrackee_client/vue.config.js diff --git a/.gitignore b/.gitignore index 6f4c82ec..68f28e5e 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ coverage.xml .venv /fittrackee.egg-info/ /dist +/fittrackee # CLIENT ############### diff --git a/fittrackee_client/vue.config.js b/fittrackee_client/vue.config.js new file mode 100644 index 00000000..3797cfc6 --- /dev/null +++ b/fittrackee_client/vue.config.js @@ -0,0 +1,20 @@ +/* eslint-disable @typescript-eslint/no-var-requires */ +const path = require('path') + +module.exports = { + configureWebpack: { + performance: { + maxEntrypointSize: 400000, + maxAssetSize: 500000, + }, + }, + chainWebpack: (config) => { + config.plugin('html').tap((args) => { + args[0].title = 'FitTrackee' + return args + }) + }, + publicPath: '/static/', + outputDir: path.resolve(__dirname, '../fittrackee/dist/static'), + indexPath: '../index.html', +}