Client - update build config

This commit is contained in:
Sam 2021-08-04 09:23:07 +02:00
parent 40355a0af5
commit d795d9bf38
2 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View File

@ -16,6 +16,7 @@ coverage.xml
.venv
/fittrackee.egg-info/
/dist
/fittrackee
# CLIENT
###############

View File

@ -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',
}