* build(deps): bump storybook from 8.3.5 to 8.4.4 * reenable public folder (with msw file) for storybook * build(deps-dev): bump vite from 5.4.6 to 5.4.11 * build(deps-dev): bump babel and rollup * build(deps-dev): bump typedoc from 0.26.5 to 0.26.11 * build(deps-dev): bump @hey-api/openapi-ts from 0.52.11 to 0.55.3 regenerated all models and migrated the config * build(deps-dev): bump eslint from 9.7.0 to 9.14.0 including related deps * build(deps-dev): bump all @types packages * build(deps-dev): bump lucide to 0.459.0 and simple-icons to 13.16.0 regenerate icons: - renamed `box-select` to `square-dashed` * build(deps): bump marked from 14.1.0 to 15.0.0 * build(deps): bump monaco-editor from 0.50.0 to 0.52.0 * build(deps): bump dumpurify from 3.1.6 to 3.2.0 * build(deps): make changes based on the dompurify upgrade where types are now an inherent part of the package * build(deps): bump diff from 5.2.0 to 7.0.0 * build(deps): bump element-internals-polyfill from 1.3.11 to 1.3.12 * build(deps): bump lit from 3.2.0 to 3.2.1 * build(deps-dev): bump globals from 15.8.0 to 15.12.0 (eslint dependency) * build(deps-dev): bump storybook dependencies * build(deps-dev): bump @web/dev-server deps * build(deps-dev): bump typescript from 5.5.3 to 5.6.3 * build(deps): bump uuid from 10.0.0 to 11.0.3 thereby eliminating the @types/uuid module * build(deps): bump tinymce-i18n from 24.7.15 to 24.11.11 * build(deps): bump all deps to latest and use backoffice global types for extension manifests * chore: change import path * build(deps-dev): bump rollup/plugin-commonjs to 26.0.3 for compatibility reasons * feat: replace outdated 'webworker-loader' with manual paths to monaco's web workers since they are esmodules anyway * build(deps-dev): bump storybook from 8.4.4 to 8.4.5 * build(deps): bump tiptap from 2.9.1 to 2.10.2 * build(deps): bump dompurify from 3.2.0 to 3.2.1 * build(deps): bump tinymce-i18n from 24.11.11 to 24.11.25 * build(deps): bump static icons * build(deps): bump marked from 15.0.0 to 15.0.2 * build(deps-dev): bump eslint + deps * build(deps-dev): bump vite + rollup dependencies * build(deps-dev): bump @playwright/test from 1.48.2 to 1.49.0 * build(deps-dev): bump @hey-api/openapi-ts from 0.55.3 to 0.57.1 generated new services * build(deps-dev): bump @types/mocha * build(deps): bump typescript from 5.6.3 to 5.7.2
57 lines
1.2 KiB
TypeScript
57 lines
1.2 KiB
TypeScript
import { defineConfig, PluginOption } from 'vite';
|
|
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
|
import viteTSConfigPaths from 'vite-tsconfig-paths';
|
|
|
|
export const plugins: PluginOption[] = [
|
|
viteStaticCopy({
|
|
targets: [
|
|
{
|
|
src: 'public-assets/App_Plugins/*.js',
|
|
dest: 'App_Plugins',
|
|
},
|
|
{
|
|
src: 'public-assets/App_Plugins/custom-bundle-package/*.js',
|
|
dest: 'App_Plugins/custom-bundle-package',
|
|
},
|
|
{
|
|
src: 'src/css/*.css',
|
|
dest: 'umbraco/backoffice/css',
|
|
},
|
|
{
|
|
src: 'src/assets/*',
|
|
dest: 'umbraco/backoffice/assets',
|
|
},
|
|
{
|
|
src: 'node_modules/tinymce/**/*',
|
|
dest: 'umbraco/backoffice/tinymce',
|
|
},
|
|
{
|
|
src: 'node_modules/tinymce-i18n/langs6/**/*',
|
|
dest: 'umbraco/backoffice/tinymce/langs',
|
|
},
|
|
{
|
|
src: 'node_modules/msw/lib/iife/**/*',
|
|
dest: 'umbraco/backoffice/msw',
|
|
},
|
|
{
|
|
src: 'node_modules/monaco-editor/esm/**/*',
|
|
dest: 'umbraco/backoffice/monaco-editor/esm',
|
|
},
|
|
],
|
|
}),
|
|
viteTSConfigPaths(),
|
|
];
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
build: {
|
|
sourcemap: true,
|
|
rollupOptions: {
|
|
input: {
|
|
main: new URL('index.html', import.meta.url).pathname, // Vite should only load the main index.html file
|
|
},
|
|
},
|
|
},
|
|
plugins,
|
|
});
|