use trilium version number in asset paths to avoid caching issues WIP

This commit is contained in:
zadam
2022-10-26 23:50:54 +02:00
parent 441a59305b
commit b499640db8
28 changed files with 124 additions and 83 deletions

View File

@@ -1,4 +1,5 @@
const path = require('path');
const assetPath = require('./src/services/asset_path');
module.exports = {
mode: 'production',
@@ -6,7 +7,7 @@ module.exports = {
mobile: './src/public/app/setup.js',
},
output: {
publicPath: 'app-dist/',
publicPath: `/${assetPath}/app-dist/`,
path: path.resolve(__dirname, 'src/public/app-dist'),
filename: 'setup.js'
},