promo! csp
This commit is contained in:
parent
baba9b9263
commit
f0ffd89860
File diff suppressed because one or more lines are too long
2
build.js
2
build.js
@ -11,6 +11,6 @@ const cfg = {
|
||||
keep_ssi_comments: false,
|
||||
};
|
||||
|
||||
fs.writeFileSync('autocart.js', JavascriptObfuscator.obfuscate(fs.readFileSync('src/autocart.js').toString()).getObfuscatedCode());
|
||||
fs.writeFileSync('autocart.js', JavascriptObfuscator.obfuscate(fs.readFileSync('src/autocart.js').toString().replace('https://local.hvatilo.ru:8055', 'https://hvatilo.ru')).getObfuscatedCode());
|
||||
fs.writeFileSync('index.html', lib.minify(fs.readFileSync('src/index.html'), cfg));
|
||||
fs.writeFileSync('auto_cart.html', lib.minify(fs.readFileSync('src/auto_cart.html'), cfg));
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
// const host = 'https://hvatilo.ru';
|
||||
const host = 'https://local.hvatilo.ru:8055';
|
||||
|
||||
// Returns a function, that, when invoked, will only be triggered at most once
|
||||
|
||||
Loading…
Reference in New Issue
Block a user