@@ -19,7 +19,6 @@ export default mergeConfig(
hmr: {
overlay: false,
},
- host: '0.0.0.0',
plugins: [
eslint({
output: {
manualChunks: {
arco: ['@arco-design/web-vue'],
- chart: ['echarts', 'vue-echarts'],
vue: ['vue', 'vue-router', 'pinia', '@vueuse/core'],
@@ -30,8 +30,6 @@ export default defineConfig({
renderer: defineViteConfig(({ mode }) => {
- console.log(mode);
-
const config = mergeConfig(
{
root: '.',
@@ -45,8 +43,6 @@ export default defineConfig({
mode === 'production' ? productionConfig : developmentConfig
);
- console.log(config);
return config;
}),
});
@@ -54,7 +54,7 @@ app.whenReady().then(() => {
createWindow();
- app.on('activate', function () {
+ app.on('activate', () => {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (BrowserWindow.getAllWindows().length === 0) createWindow();