Compare commits
2 commits
7f09618922
...
06c59824bd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06c59824bd | ||
|
|
7c6d4857df |
3 changed files with 27 additions and 4 deletions
|
|
@ -82,7 +82,7 @@ define(['./workbox-54d0af47'], (function (workbox) { 'use strict';
|
||||||
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||||
}, {
|
}, {
|
||||||
"url": "index.html",
|
"url": "index.html",
|
||||||
"revision": "0.7ltvc2qlesg"
|
"revision": "0.20gg38gpeso"
|
||||||
}], {});
|
}], {});
|
||||||
workbox.cleanupOutdatedCaches();
|
workbox.cleanupOutdatedCaches();
|
||||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@ import './index.css'
|
||||||
import { UiEvalService } from './services/UiEvalService'
|
import { UiEvalService } from './services/UiEvalService'
|
||||||
import 'devextreme-react/text-area'
|
import 'devextreme-react/text-area'
|
||||||
import 'devextreme-react/html-editor'
|
import 'devextreme-react/html-editor'
|
||||||
// import config from 'devextreme/core/config'
|
import config from 'devextreme/core/config'
|
||||||
// import { licenseKey } from './devextreme-license'
|
import { licenseKey } from './devextreme-license'
|
||||||
|
|
||||||
// Lisansı uygulama başlamadan önce kaydediyoruz
|
// Lisansı uygulama başlamadan önce kaydediyoruz
|
||||||
// config({ licenseKey })
|
config({ licenseKey })
|
||||||
|
|
||||||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(<App />)
|
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(<App />)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,29 @@ export default defineConfig(async ({ mode }) => {
|
||||||
build: {
|
build: {
|
||||||
outDir: 'dist',
|
outDir: 'dist',
|
||||||
sourcemap: false,
|
sourcemap: false,
|
||||||
|
rollupOptions: {
|
||||||
|
output: {
|
||||||
|
manualChunks(id) {
|
||||||
|
if (id.includes('node_modules')) {
|
||||||
|
if (id.match(/node_modules[\\/]react/)) return 'vendor-react'
|
||||||
|
if (id.match(/node_modules[\\/]react-dom/)) return 'vendor-reactdom'
|
||||||
|
if (id.match(/node_modules[\\/]devextreme/)) return 'vendor-devextreme'
|
||||||
|
if (id.match(/node_modules[\\/]@devexpress/)) return 'vendor-devexpress'
|
||||||
|
if (id.match(/node_modules[\\/]devextreme-react/)) return 'vendor-devextreme-react'
|
||||||
|
if (id.match(/node_modules[\\/]axios/)) return 'vendor-axios'
|
||||||
|
if (id.match(/node_modules[\\/]formik/)) return 'vendor-formik'
|
||||||
|
if (id.match(/node_modules[\\/]jspdf/)) return 'vendor-jspdf'
|
||||||
|
if (id.match(/node_modules[\\/]exceljs/)) return 'vendor-exceljs'
|
||||||
|
if (id.match(/node_modules[\\/]html2canvas/)) return 'vendor-html2canvas'
|
||||||
|
if (id.match(/node_modules[\\/]@?react-router/)) return 'vendor-reactrouter'
|
||||||
|
// Büyük modüller için özel chunk
|
||||||
|
if (id.match(/src[\\/]codeParser/)) return 'chunk-codeParser'
|
||||||
|
if (id.match(/src[\\/]views[\\/]list[\\/]Utils/)) return 'chunk-list-utils'
|
||||||
|
return 'vendor'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
preview: {
|
preview: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue