mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-31 11:09:10 +03:00
formatting
This commit is contained in:
@@ -118,9 +118,7 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
manualChunks(id: string) {
|
manualChunks(id: string) {
|
||||||
if (id.includes('node_modules')) {
|
if (id.includes('node_modules')) {
|
||||||
// creating a chunk to react routes deps. Reducing the vendor chunk size
|
// creating a chunk to react routes deps. Reducing the vendor chunk size
|
||||||
if (
|
if (id.includes('react-router')) {
|
||||||
id.includes('react-router')
|
|
||||||
) {
|
|
||||||
return '@react-router';
|
return '@react-router';
|
||||||
}
|
}
|
||||||
return 'vendor';
|
return 'vendor';
|
||||||
|
|||||||
@@ -216,8 +216,18 @@ function check_upgrade(version: string) {
|
|||||||
if (version) {
|
if (version) {
|
||||||
const dev_version = version.split(',')[0];
|
const dev_version = version.split(',')[0];
|
||||||
const stable_version = version.split(',')[1];
|
const stable_version = version.split(',')[1];
|
||||||
console.log("latest dev version: " + dev_version + ", latest stable version: " + stable_version);
|
console.log(
|
||||||
console.log('Version upgrade check from version ' + THIS_VERSION + ', upgradable: ' + VERSION_IS_UPGRADEABLE);
|
'latest dev version: ' +
|
||||||
|
dev_version +
|
||||||
|
', latest stable version: ' +
|
||||||
|
stable_version
|
||||||
|
);
|
||||||
|
console.log(
|
||||||
|
'Version upgrade check from version ' +
|
||||||
|
THIS_VERSION +
|
||||||
|
', upgradable: ' +
|
||||||
|
VERSION_IS_UPGRADEABLE
|
||||||
|
);
|
||||||
data = {
|
data = {
|
||||||
emsesp_version: THIS_VERSION,
|
emsesp_version: THIS_VERSION,
|
||||||
upgradeable: VERSION_IS_UPGRADEABLE
|
upgradeable: VERSION_IS_UPGRADEABLE
|
||||||
|
|||||||
Reference in New Issue
Block a user