Skip to content

Commit feeee81

Browse files
committed
error fixed I hope
1 parent 14ae26f commit feeee81

File tree

9 files changed

+48
-47
lines changed

9 files changed

+48
-47
lines changed

dist/assets/Graph-85TvFjIz.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

dist/assets/Settings-BsSlLrAG.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/assets/Table-DRtZYmBB.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/main.js

Lines changed: 27 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/style.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/style2.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/style3.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/style4.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

vite.config.js

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,28 @@ import vue from '@vitejs/plugin-vue';
44
export default defineConfig({
55
plugins: [vue()],
66
build: {
7-
outDir: 'dist',
8-
rollupOptions: {
9-
input: 'src/main.js',
10-
output: {
11-
entryFileNames: 'main.js',
12-
assetFileNames: 'style.css'
13-
}
14-
}
7+
outDir: 'dist',
8+
rollupOptions: {
9+
input: 'src/main.js',
10+
output: {
11+
format: 'iife', // Output as an Immediately Invoked Function Expression for browser compatibility
12+
entryFileNames: 'main.js',
13+
assetFileNames: 'style.css',
14+
globals: {
15+
vue: 'Vue'
16+
}
17+
}
18+
},
19+
target: 'es2015' // Ensures compatibility with older browsers
1520
},
1621
server: {
17-
host: true,
18-
proxy: {
19-
'/api': {
20-
target: 'https://miusage.com/v1/challenge/2/static/',
21-
changeOrigin: true,
22-
rewrite: (path) => path.replace(/^\/api/, ''),
22+
host: true,
23+
proxy: {
24+
'/api': {
25+
target: 'https://miusage.com/v1/challenge/2/static/',
26+
changeOrigin: true,
27+
rewrite: (path) => path.replace(/^\/api/, ''),
28+
}
2329
}
24-
}
2530
}
26-
});
31+
});

0 commit comments

Comments
 (0)