nocache for build

This commit is contained in:
Zakhar 2026-09-06 01:22:41 +03:00
parent a2a6f17bbf
commit 2438a99d3d

View File

@ -22,6 +22,7 @@ export default defineConfig(({mode}) => ({
name: 'copy-html-root',
closeBundle() {
fs.copyFileSync('dist/src/template.html', 'auto_cart.html');
fs.writeFileSync('auto_cart.html', fs.readFileSync('dist/src/template.html').toString().replace('autocart.js', 'autocart.js?' + Math.random()));
fs.copyFileSync('src_static/cookies_and_recommendations.html', 'land/cookies_and_recommendations.html');
fs.writeFileSync('autocart.js', JavascriptObfuscator.obfuscate(fs.readFileSync('dist/autocart.js').toString()
.replace('https://local.hvatilo.ru:8055', 'https://hvatilo.ru')