We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23e2d37 commit 2c49f7bCopy full SHA for 2c49f7b
Servers/UI/OJS.Servers.Ui/ClientApp/vite.config.js
@@ -30,6 +30,25 @@ export default defineConfig({
30
main: resolve(__dirname, 'index.html'),
31
admin: resolve(__dirname, 'admin.html')
32
},
33
+ output: {
34
+ manualChunks(id) {
35
+ if (id.includes('node_modules')) {
36
+ if (id.includes('react')) {
37
+ return 'react-vendor'; // React and its ecosystem
38
+ }
39
+
40
+ if (id.includes('material')) {
41
+ return 'material-vendor'; // Material
42
43
44
+ if (id.includes('@mui')) {
45
+ return 'mui-vendor'; // Material UI
46
47
48
+ return 'vendor'; // Other libraries
49
50
51
+ },
52
onwarn(warning, warn) {
53
if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
54
return
0 commit comments