Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESM support for vite-dotnet NPM package due to externalize-deps #22

Open
ericgarzagzz opened this issue Jan 18, 2024 · 0 comments
Open

Comments

@ericgarzagzz
Copy link

I can't get to work this package. When I try to run the app after following the guide at https://vite-dotnet.techgems.net/guide/getting-started console outputs:

The plugin "externalize-deps" was triggered by this import

    vite.config.js:3:23:
      3 │ import ViteDotNet from "vite-dotnet";
        ╵                        ~~~~~~~~~~~~~
failed to load config from C:\Dev\Personal\TailwiseTest\ClientApp\vite.config.js
error when starting dev server:
Error: Build failed with 1 error:
node_modules/esbuild/lib/main.js:1373:27: ERROR: [plugin: externalize-deps] Failed to resolve "vite-dotnet". This package is ESM only but it was tried to load by 'require'. See http://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details.
    at failureErrorWithLog (C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:1649:15)
    at C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:1058:25
    at runOnEndCallbacks (C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:1484:45)
    at buildResponseToResult (C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:1056:7)
    at C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:1085:16
    at responseCallbacks.<computed> (C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:703:9)
    at handleIncomingPacket (C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:762:9)
    at Socket.readFromStdout (C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:679:7)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:376:12)

I may be doing something wrong, but I just don't see what is that I am doing wrong.

My vite.config.js is:

import { defineConfig } from "vite";
import path from "path";
import ViteDotNet from "vite-dotnet";

export default defineConfig({
    base: "",
    plugins: [
        ViteDotNet("src/js/app.js")
    ],
    build: {
        manifest: true,
        modulePreload: {
            polyfill: false,
        },
        rollupOptions: {
            input: [
                // CSS Vendors
                "src/css/vendors/ckeditor.css",
                "src/css/vendors/dropzone.css",
                "src/css/vendors/full-calendar.css",
                "src/css/vendors/highlight.css",
                "src/css/vendors/leaflet.css",
                "src/css/vendors/litepicker.css",
                "src/css/vendors/simplebar.css",
                "src/css/vendors/tabulator.css",
                "src/css/vendors/tiny-slider.css",
                "src/css/vendors/tippy.css",
                "src/css/vendors/toastify.css",
                "src/css/vendors/tom-select.css",
                "src/css/vendors/zoom-vanilla.css",

                // CSS Pages
                "src/css/pages/landing-page.css",

                // CSS Themes
                "src/css/themes/dagger.css",
                "src/css/themes/echo.css",
                "src/css/themes/exort.css",
                "src/css/themes/havoc.css",
                "src/css/themes/hook.css",
                "src/css/themes/hurricane.css",
                "src/css/themes/ravage.css",
                "src/css/themes/raze.css",
                "src/css/themes/razor.css",
                "src/css/themes/shuriken.css",
                "src/css/themes/viper.css",

                // CSS General
                "src/css/app.css",

                // JS Vendor
                "src/js/vendors/accordion.js",
                "src/js/vendors/alert.js",
                "src/js/vendors/axios.js",
                "src/js/vendors/calendar/calendar.js",
                "src/js/vendors/calendar/plugins/day-grid.js",
                "src/js/vendors/calendar/plugins/interaction.js",
                "src/js/vendors/calendar/plugins/list.js",
                "src/js/vendors/calendar/plugins/time-grid.js",
                "src/js/vendors/chartjs.js",
                "src/js/vendors/dayjs.js",
                "src/js/vendors/ckeditor/balloon.js",
                "src/js/vendors/ckeditor/balloon-block.js",
                "src/js/vendors/ckeditor/classic.js",
                "src/js/vendors/ckeditor/document.js",
                "src/js/vendors/ckeditor/inline.js",
                "src/js/vendors/popper.js",
                "src/js/vendors/dom.js",
                "src/js/vendors/dropdown.js",
                "src/js/vendors/dropzone.js",
                "src/js/vendors/highlight.js",
                "src/js/vendors/image-zoom.js",
                "src/js/vendors/leaflet-map.js",
                "src/js/vendors/litepicker.js",
                "src/js/vendors/lodash.js",
                "src/js/vendors/lucide.js",
                "src/js/vendors/modal.js",
                "src/js/vendors/pristine.js",
                "src/js/vendors/simplebar.js",
                "src/js/vendors/svg-loader.js",
                "src/js/vendors/tab.js",
                "src/js/vendors/tabulator.js",
                "src/js/vendors/tailwind-merge.js",
                "src/js/vendors/tiny-slider.js",
                "src/js/vendors/tippy.js",
                "src/js/vendors/toastify.js",
                "src/js/vendors/tom-select.js",
                "src/js/vendors/transition.js",
                "src/js/vendors/xlsx.js",

                // JS Utils
                "src/js/utils/colors.js",
                "src/js/utils/helper.js",

                // JS Pages
                "src/js/pages/landing-page.js",
                "src/js/pages/modal.js",
                "src/js/pages/notification.js",
                "src/js/pages/slideover.js",
                "src/js/pages/tabulator.js",
                "src/js/pages/validation.js",

                // JS Themes
                "src/js/themes/dagger.js",
                "src/js/themes/echo.js",
                "src/js/themes/exort.js",
                "src/js/themes/havoc.js",
                "src/js/themes/hook.js",
                "src/js/themes/hurricane.js",
                "src/js/themes/ravage.js",
                "src/js/themes/raze.js",
                "src/js/themes/razor.js",
                "src/js/themes/shuriken.js",
                "src/js/themes/viper.js",

                // JS Base Components
                "src/js/components/base/theme-color.js",
                "src/js/components/base/calendar/calendar.js",
                "src/js/components/base/calendar/draggable.js",
                "src/js/components/base/balloon-block-editor.js",
                "src/js/components/base/balloon-editor.js",
                "src/js/components/base/classic-editor.js",
                "src/js/components/base/document-editor.js",
                "src/js/components/base/dropzone.js",
                "src/js/components/base/highlight.js",
                "src/js/components/base/inline-editor.js",
                "src/js/components/base/leaflet-map-loader.js",
                "src/js/components/base/litepicker.js",
                "src/js/components/base/lucide.js",
                "src/js/components/base/preview-component.js",
                "src/js/components/base/source.js",
                "src/js/components/base/tiny-slider.js",
                "src/js/components/base/tippy.js",
                "src/js/components/base/tippy-content.js",
                "src/js/components/base/tom-select.js",

                // JS Components
                "src/js/components/donut-chart.js",
                "src/js/components/horizontal-bar-chart.js",
                "src/js/components/line-chart.js",
                "src/js/components/pie-chart.js",
                "src/js/components/quick-search.js",
                "src/js/components/report-bar-chart.js",
                "src/js/components/report-bar-chart-3.js",
                "src/js/components/report-bar-chart-4.js",
                "src/js/components/report-bar-chart-5.js",
                "src/js/components/report-bar-chart-6.js",
                "src/js/components/report-donut-chart-3.js",
                "src/js/components/report-donut-chart-4.js",
                "src/js/components/report-donut-chart-5.js",
                "src/js/components/report-donut-chart-6.js",
                "src/js/components/report-donut-chart-7.js",
                "src/js/components/report-line-chart.js",
                "src/js/components/report-line-chart-1.js",
                "src/js/components/report-line-chart-2.js",
                "src/js/components/report-line-chart-3.js",
                "src/js/components/report-line-chart-4.js",
                "src/js/components/report-radar-chart.js",
                "src/js/components/simple-line-chart-1.js",
                "src/js/components/stacked-bar-chart.js",
                "src/js/components/vertical-bar-chart.js",

                // JS General
                "src/js/app.js",

                // Pages
                "viper-dashboard-overview-2.html",
                "hurricane-validation.html",
                "dagger-settings-email-settings.html",
                "echo-regular-form.html",
                "dagger-settings-device-history.html",
                "shuriken-dashboard-overview-3.html",
                "ravage-landing-page.html",
                "hurricane-slider.html",
                "echo-slideover.html",
                "raze-profile-overview.html",
                "ravage-chart.html",
                "razor-settings-device-history.html",
                "echo-product-list.html",
                "razor-settings-email-settings.html",
                "hook-file-upload.html",
                "hook-typography.html",
                "raze-dynamic.html",
                "raze-settings-security.html",
                "shuriken-icon.html",
                "viper-add-product.html",
                "raze-transaction-detail.html",
                "ravage-calendar.html",
                "viper-product-grid.html",
                "hurricane-landing-page.html",
                "echo-creative.html",
                "shuriken-calendar.html",
                "echo-seller-list.html",
                "razor-creative.html",
                "exort-dashboard-overview-8.html",
                "razor-add-product.html",
                "havoc-settings.html",
                "shuriken-tooltip.html",
                "hurricane-progress-bar.html",
                "echo-inbox.html",
                "hook-point-of-sale.html",
                "viper-calendar.html",
                "shuriken-login.html",
                "ravage-progress-bar.html",
                "shuriken-settings-notification-settings.html",
                "echo-slider.html",
                "shuriken-settings-preferences.html",
                "viper-settings-connected-services.html",
                "raze-dashboard-overview-6.html",
                "dagger-profile-overview-achievements.html",
                "havoc-datepicker.html",
                "ravage-invoice.html",
                "raze-accordion.html",
                "exort-file-upload.html",
                "echo-profile-overview-events.html",
                "havoc-categories.html",
                "hurricane-dashboard-overview-6.html",
                "shuriken-profile-overview-achievements.html",
                "dagger-settings-preferences.html",
                "ravage-users.html",
                "hurricane-calendar.html",
                "dagger-file-manager-list.html",
                "havoc-dashboard-overview-2.html",
                "exort-profile-overview-achievements.html",
                "raze-tabulator.html",
                "razor-regular-form.html",
                "dagger-slider.html",
                "ravage-alert.html",
                "hook-modal.html",
                "exort-reviews.html",
                "hook-tom-select.html",
                "havoc-modal.html",
                "dagger-creative.html",
                "havoc-landing-page.html",
                "hurricane-file-manager-grid.html",
                "hurricane-file-upload.html",
                "hook-dashboard-overview-6.html",
                "razor-product-list.html",
                "exort-login.html",
                "exort-settings-connected-services.html",
                "exort-product-grid.html",
                "hurricane-login.html",
                "exort-dashboard-overview-4.html",
                "hook-creative.html",
                "havoc-progress-bar.html",
                "razor-settings-notification-settings.html",
                "dagger-loading-icon.html",
                "dagger-dashboard-overview-3.html",
                "raze-regular-form.html",
                "raze-settings-notification-settings.html",
                "ravage-chat.html",
                "havoc-settings-connected-services.html",
                "hook-wysiwyg-editor.html",
                "havoc-profile-overview.html",
                "ravage-dashboard-overview-7.html",
                "raze-login.html",
                "dagger-notification.html",
                "raze-product-list.html",
                "ravage-dashboard-overview-6.html",
                "razor-profile-overview-default.html",
                "raze-tooltip.html",
                "razor-categories.html",
                "raze-settings.html",
                "viper-validation.html",
                "viper-tab.html",
                "echo-accordion.html",
                "hurricane-profile-overview-achievements.html",
                "ravage-inbox.html",
                "dagger-dashboard-overview-2.html",
                "exort-icon.html",
                "raze-regular-table.html",
                "index.html",
                "echo-settings-security.html",
                "havoc-settings-preferences.html",
                "dagger-point-of-sale.html",
                "shuriken-button.html",
                "hook-transaction-list.html",
                "exort-dashboard-overview-5.html",
                "razor-reviews.html",
                "razor-register.html",
                "hook-dashboard-overview-7.html",
                "dagger-profile-overview-contacts.html",
                "ravage-settings-two-factor-authentication.html",
                "echo-register.html",
                "havoc-dashboard-overview-3.html",
                "razor-dashboard-overview-1.html",
                "raze-seller-detail.html",
                "havoc-billing.html",
                "echo-product-grid.html",
                "hurricane-wysiwyg-editor.html",
                "viper-modal.html",
                "exort-profile-overview-default.html",
                "echo-chart.html",
                "raze-slideover.html",
                "viper-regular-form.html",
                "hurricane-dashboard-overview-7.html",
                "havoc-slider.html",
                "exort-transaction-detail.html",
                "raze-add-product.html",
                "echo-interactive.html",
                "viper-product-list.html",
                "shuriken-dynamic.html",
                "dagger-typography.html",
                "shuriken-file-upload.html",
                "exort-typography.html",
                "dagger-icon.html",
                "raze-dashboard-overview-7.html",
                "exort-product-list.html",
                "viper-settings-preferences.html",
                "ravage-validation.html",
                "hook-settings-two-factor-authentication.html",
                "ravage-profile-overview-achievements.html",
                "ravage-file-upload.html",
                "hook-settings-connected-services.html",
                "razor-settings-security.html",
                "viper-regular-table.html",
                "hurricane-icon.html",
                "exort-regular-form.html",
                "viper-button.html",
                "dagger-invoice.html",
                "hook-landing-page.html",
                "hook-profile-overview-achievements.html",
                "hook-register.html",
                "ravage-profile-overview-default.html",
                "shuriken-profile-overview-events.html",
                "echo-billing.html",
                "hook-settings-security.html",
                "raze-image-zoom.html",
                "hook-profile-overview-default.html",
                "viper-settings-notification-settings.html",
                "raze-product-grid.html",
                "hook-progress-bar.html",
                "echo-tabulator.html",
                "dagger-register.html",
                "dagger-file-upload.html",
                "hurricane-billing.html",
                "echo-alert.html",
                "dagger-login.html",
                "dagger-file-manager-grid.html",
                "hook-invoice.html",
                "viper-reviews.html",
                "havoc-settings-account-deactivation.html",
                "viper-seller-detail.html",
                "dagger-tom-select.html",
                "echo-users.html",
                "shuriken-validation.html",
                "exort-tom-select.html",
                "havoc-departments.html",
                "exort-settings-security.html",
                "razor-datepicker.html",
                "hurricane-file-manager-list.html",
                "echo-image-zoom.html",
                "exort-calendar.html",
                "viper-dashboard-overview-3.html",
                "razor-product-grid.html",
                "echo-transaction-detail.html",
                "shuriken-dashboard-overview-2.html",
                "shuriken-loading-icon.html",
                "dagger-tab.html",
                "razor-tooltip.html",
                "viper-dashboard-overview-8.html",
                "hook-product-grid.html",
                "raze-landing-page.html",
                "raze-settings-connected-services.html",
                "hook-billing.html",
                "viper-image-zoom.html",
                "hurricane-invoice.html",
                "shuriken-notification.html",
                "echo-file-manager-grid.html",
                "razor-dashboard-overview-6.html",
                "havoc-dashboard-overview-4.html",
                "viper-inbox.html",
                "dagger-profile-overview.html",
                "echo-profile-overview-contacts.html",
                "exort-categories.html",
                "razor-progress-bar.html",
                "hook-transaction-detail.html",
                "hook-slider.html",
                "dagger-categories.html",
                "shuriken-tabulator.html",
                "raze-reviews.html",
                "viper-register.html",
                "raze-dropdown.html",
                "havoc-regular-form.html",
                "razor-typography.html",
                "exort-dashboard-overview-2.html",
                "havoc-alert.html",
                "razor-landing-page.html",
                "hook-alert.html",
                "ravage-modal.html",
                "havoc-product-list.html",
                "raze-add-user.html",
                "hook-profile-overview-contacts.html",
                "dagger-dashboard-overview-5.html",
                "dagger-billing.html",
                "hook-users.html",
                "viper-tabulator.html",
                "shuriken-register.html",
                "hook-settings-notification-settings.html",
                "raze-file-manager-list.html",
                "hook-departments.html",
                "hurricane-accordion.html",
                "razor-settings-social-media-links.html",
                "ravage-tab.html",
                "hurricane-transaction-detail.html",
                "havoc-users.html",
                "raze-progress-bar.html",
                "hurricane-settings-account-deactivation.html",
                "echo-invoice.html",
                "ravage-dashboard-overview-1.html",
                "ravage-register.html",
                "viper-dashboard-overview-4.html",
                "shuriken-dashboard-overview-5.html",
                "razor-tab.html",
                "ravage-image-zoom.html",
                "viper-interactive.html",
                "hook-icon.html",
                "echo-dashboard-overview-6.html",
                "exort-button.html",
                "havoc-profile-overview-achievements.html",
                "havoc-invoice.html",
                "echo-progress-bar.html",
                "havoc-regular-table.html",
                "echo-settings-connected-services.html",
                "ravage-seller-detail.html",
                "raze-seller-list.html",
                "razor-file-manager-grid.html",
                "viper-profile-overview-default.html",
                "havoc-dashboard-overview-8.html",
                "viper-settings-two-factor-authentication.html",
                "exort-dynamic.html",
                "hurricane-tabulator.html",
                "raze-validation.html",
                "viper-accordion.html",
                "hook-file-manager-grid.html",
                "razor-transaction-list.html",
                "razor-seller-detail.html",
                "exort-transaction-list.html",
                "hurricane-regular-form.html",
                "exort-datepicker.html",
                "razor-regular-table.html",
                "ravage-button.html",
                "hurricane-register.html",
                "hook-settings-account-deactivation.html",
                "hurricane-departments.html",
                "dagger-datepicker.html",
                "exort-creative.html",
                "dagger-settings-security.html",
                "hook-slideover.html",
                "hurricane-product-list.html",
                "echo-chat.html",
                "razor-tom-select.html",
                "ravage-product-list.html",
                "razor-interactive.html",
                "havoc-seller-detail.html",
                "viper-tooltip.html",
                "shuriken-accordion.html",
                "ravage-regular-table.html",
                "dagger-settings-notification-settings.html",
                "hook-chart.html",
                "hurricane-profile-overview.html",
                "shuriken-image-zoom.html",
                "viper-transaction-list.html",
                "shuriken-point-of-sale.html",
                "echo-landing-page.html",
                "exort-departments.html",
                "echo-validation.html",
                "havoc-chart.html",
                "ravage-regular-form.html",
                "exort-file-manager-grid.html",
                "ravage-settings-account-deactivation.html",
                "raze-icon.html",
                "shuriken-settings-social-media-links.html",
                "raze-dashboard-overview-1.html",
                "ravage-creative.html",
                "shuriken-departments.html",
                "hurricane-image-zoom.html",
                "exort-progress-bar.html",
                "shuriken-creative.html",
                "dagger-settings-account-deactivation.html",
                "exort-point-of-sale.html",
                "dagger-dashboard-overview-8.html",
                "havoc-product-grid.html",
                "hook-tab.html",
                "hook-tabulator.html",
                "havoc-add-user.html",
                "echo-calendar.html",
                "viper-chart.html",
                "razor-dynamic.html",
                "echo-modal.html",
                "razor-login.html",
                "raze-file-manager-grid.html",
                "hurricane-seller-detail.html",
                "viper-creative.html",
                "exort-settings-notification-settings.html",
                "exort-wysiwyg-editor.html",
                "hook-product-list.html",
                "raze-tab.html",
                "havoc-tom-select.html",
                "hook-regular-form.html",
                "hurricane-regular-table.html",
                "echo-file-manager-list.html",
                "echo-transaction-list.html",
                "havoc-profile-overview-events.html",
                "exort-landing-page.html",
                "hurricane-profile-overview-events.html",
                "hook-categories.html",
                "shuriken-reviews.html",
                "razor-calendar.html",
                "viper-chat.html",
                "echo-dashboard-overview-7.html",
                "raze-settings-device-history.html",
                "raze-settings-email-settings.html",
                "havoc-dropdown.html",
                "viper-dashboard-overview-5.html",
                "hurricane-slideover.html",
                "raze-slider.html",
                "exort-settings-device-history.html",
                "shuriken-dashboard-overview-4.html",
                "exort-settings-email-settings.html",
                "havoc-file-upload.html",
                "ravage-profile-overview-events.html",
                "hook-settings-device-history.html",
                "hook-settings-email-settings.html",
                "echo-settings-two-factor-authentication.html",
                "exort-tooltip.html",
                "hurricane-product-grid.html",
                "viper-alert.html",
                "dagger-dashboard-overview-4.html",
                "viper-landing-page.html",
                "dagger-calendar.html",
                "hook-datepicker.html",
                "viper-slideover.html",
                "ravage-product-grid.html",
                "echo-regular-table.html",
                "viper-users.html",
                "dagger-settings-social-media-links.html",
                "razor-seller-list.html",
                "exort-register.html",
                "razor-icon.html",
                "hurricane-settings-social-media-links.html",
                "hurricane-creative.html",
                "ravage-settings-connected-services.html",
                "exort-dashboard-overview-3.html",
                "raze-profile-overview-default.html",
                "ravage-billing.html",
                "exort-file-manager-list.html",
                "dagger-departments.html",
                "hurricane-settings-security.html",
                "hook-accordion.html",
                "viper-dynamic.html",
                "viper-seller-list.html",
                "havoc-typography.html",
                "exort-settings-preferences.html",
                "hook-dashboard-overview-1.html",
                "viper-profile-overview-events.html",
                "exort-settings-account-deactivation.html",
                "shuriken-profile-overview.html",
                "raze-interactive.html",
                "echo-add-product.html",
                "razor-dashboard-overview-7.html",
                "havoc-dashboard-overview-5.html",
                "echo-seller-detail.html",
                "razor-file-manager-list.html",
                "ravage-transaction-list.html",
                "ravage-departments.html",
                "hurricane-dashboard-overview-1.html",
                "hook-inbox.html",
                "exort-settings-two-factor-authentication.html",
                "shuriken-slideover.html",
                "razor-slider.html",
                "havoc-inbox.html",
                "shuriken-dashboard-overview-8.html",
                "ravage-wysiwyg-editor.html",
                "havoc-icon.html",
                "shuriken-settings-account-deactivation.html",
                "viper-progress-bar.html",
                "hook-file-manager-list.html",
                "hook-calendar.html",
                "echo-loading-icon.html",
                "ravage-dashboard-overview-3.html",
                "hook-settings.html",
                "exort-slider.html",
                "raze-tom-select.html",
                "exort-accordion.html",
                "viper-file-upload.html",
                "ravage-datepicker.html",
                "razor-point-of-sale.html",
                "echo-notification.html",
                "dagger-dashboard-overview-7.html",
                "hook-add-product.html",
                "ravage-profile-overview-contacts.html",
                "shuriken-regular-table.html",
                "razor-profile-overview.html",
                "hook-settings-social-media-links.html",
                "hurricane-add-user.html",
                "ravage-point-of-sale.html",
                "shuriken-file-manager-list.html",
                "hook-dashboard-overview-2.html",
                "razor-chart.html",
                "havoc-point-of-sale.html",
                "echo-tom-select.html",
                "ravage-slider.html",
                "shuriken-seller-detail.html",
                "razor-tabulator.html",
                "viper-login.html",
                "dagger-wysiwyg-editor.html",
                "exort-profile-overview.html",
                "havoc-seller-list.html",
                "dagger-image-zoom.html",
                "razor-transaction-detail.html",
                "hurricane-dropdown.html",
                "ravage-tooltip.html",
                "ravage-tabulator.html",
                "exort-image-zoom.html",
                "havoc-dashboard-overview-6.html",
                "razor-dashboard-overview-4.html",
                "shuriken-chat.html",
                "razor-validation.html",
                "dagger-settings.html",
                "viper-profile-overview.html",
                "hurricane-transaction-list.html",
                "hurricane-dashboard-overview-2.html",
                "shuriken-datepicker.html",
                "exort-billing.html",
                "ravage-settings-preferences.html",
                "viper-categories.html",
                "shuriken-invoice.html",
                "razor-file-upload.html",
                "echo-dashboard-overview-8.html",
                "shuriken-categories.html",
                "raze-settings-two-factor-authentication.html",
                "viper-datepicker.html",
                "ravage-accordion.html",
                "raze-dashboard-overview-2.html",
                "hurricane-add-product.html",
                "ravage-add-user.html",
                "shuriken-add-user.html",
                "shuriken-progress-bar.html",
                "razor-accordion.html",
                "razor-settings.html",
                "raze-typography.html",
                "havoc-creative.html",
                "raze-register.html",
                "ravage-icon.html",
                "dagger-transaction-list.html",
                "viper-dropdown.html",
                "razor-loading-icon.html",
                "shuriken-settings-two-factor-authentication.html",
                "havoc-transaction-detail.html",
                "dagger-dynamic.html",
                "hook-button.html",
                "ravage-file-manager-list.html",
                "razor-notification.html",
                "razor-wysiwyg-editor.html",
                "echo-profile-overview-achievements.html",
                "exort-add-product.html",
                "viper-add-user.html",
                "razor-users.html",
                "exort-tabulator.html",
                "razor-dashboard-overview-8.html",
                "hook-dynamic.html",
                "razor-settings-account-deactivation.html",
                "echo-typography.html",
                "echo-settings.html",
                "ravage-dropdown.html",
                "viper-file-manager-grid.html",
                "dagger-regular-form.html",
                "raze-loading-icon.html",
                "ravage-categories.html",
                "echo-dashboard-overview-4.html",
                "shuriken-dropdown.html",
                "dagger-modal.html",
                "shuriken-landing-page.html",
                "raze-notification.html",
                "shuriken-dashboard-overview-7.html",
                "dagger-product-list.html",
                "viper-dashboard-overview-6.html",
                "razor-alert.html",
                "hook-image-zoom.html",
                "hurricane-profile-overview-contacts.html",
                "viper-billing.html",
                "shuriken-dashboard-overview-6.html",
                "exort-slideover.html",
                "viper-dashboard-overview-7.html",
                "echo-dashboard-overview-5.html",
                "hurricane-reviews.html",
                "raze-settings-preferences.html",
                "havoc-interactive.html",
                "hook-profile-overview-events.html",
                "raze-invoice.html",
                "havoc-profile-overview-contacts.html",
                "exort-dropdown.html",
                "ravage-settings-device-history.html",
                "ravage-settings-email-settings.html",
                "razor-inbox.html",
                "shuriken-modal.html",
                "shuriken-add-product.html",
                "havoc-settings-social-media-links.html",
                "raze-file-upload.html",
                "exort-add-user.html",
                "exort-chat.html",
                "shuriken-tab.html",
                "shuriken-transaction-list.html",
                "raze-profile-overview-achievements.html",
                "hurricane-categories.html",
                "exort-settings-social-media-links.html",
                "viper-loading-icon.html",
                "ravage-profile-overview.html",
                "echo-reviews.html",
                "razor-button.html",
                "ravage-dynamic.html",
                "viper-notification.html",
                "shuriken-file-manager-grid.html",
                "viper-settings-device-history.html",
                "razor-profile-overview-contacts.html",
                "echo-point-of-sale.html",
                "raze-dashboard-overview-3.html",
                "viper-settings-email-settings.html",
                "havoc-reviews.html",
                "exort-notification.html",
                "hook-login.html",
                "hurricane-profile-overview-default.html",
                "razor-slideover.html",
                "dagger-tooltip.html",
                "hurricane-point-of-sale.html",
                "havoc-settings-security.html",
                "exort-profile-overview-contacts.html",
                "ravage-slideover.html",
                "hurricane-dashboard-overview-3.html",
                "exort-modal.html",
                "hurricane-datepicker.html",
                "echo-departments.html",
                "exort-loading-icon.html",
                "havoc-login.html",
                "viper-file-manager-list.html",
                "havoc-dashboard-overview-7.html",
                "razor-dashboard-overview-5.html",
                "echo-settings-notification-settings.html",
                "ravage-add-product.html",
                "shuriken-wysiwyg-editor.html",
                "exort-seller-detail.html",
                "dagger-settings-two-factor-authentication.html",
                "hook-dashboard-overview-3.html",
                "dagger-product-grid.html",
                "raze-profile-overview-events.html",
                "hook-settings-preferences.html",
                "exort-dashboard-overview-1.html",
                "exort-regular-table.html",
                "dagger-chat.html",
                "exort-profile-overview-events.html",
                "hurricane-chat.html",
                "raze-modal.html",
                "havoc-settings-device-history.html",
                "raze-creative.html",
                "havoc-settings-email-settings.html",
                "hurricane-settings-device-history.html",
                "viper-settings-social-media-links.html",
                "hurricane-settings-email-settings.html",
                "shuriken-profile-overview-default.html",
                "dagger-dashboard-overview-6.html",
                "hurricane-settings-preferences.html",
                "hurricane-modal.html",
                "echo-profile-overview.html",
                "havoc-register.html",
                "razor-billing.html",
                "havoc-validation.html",
                "dagger-add-product.html",
                "hook-tooltip.html",
                "ravage-file-manager-grid.html",
                "raze-button.html",
                "ravage-dashboard-overview-2.html",
                "viper-profile-overview-achievements.html",
                "hurricane-tab.html",
                "razor-modal.html",
                "shuriken-inbox.html",
                "shuriken-regular-form.html",
                "raze-dashboard-overview-4.html",
                "exort-settings.html",
                "dagger-settings-connected-services.html",
                "razor-departments.html",
                "dagger-alert.html",
                "hurricane-settings-connected-services.html",
                "echo-login.html",
                "hook-validation.html",
                "dagger-landing-page.html",
                "ravage-settings-social-media-links.html",
                "exort-interactive.html",
                "shuriken-product-list.html",
                "dagger-seller-list.html",
                "exort-tab.html",
                "hurricane-interactive.html",
                "dagger-button.html",
                "echo-wysiwyg-editor.html",
                "hurricane-typography.html",
                "havoc-profile-overview-default.html",
                "razor-invoice.html",
                "raze-settings-account-deactivation.html",
                "hurricane-tooltip.html",
                "echo-settings-email-settings.html",
                "dagger-users.html",
                "echo-settings-device-history.html",
                "havoc-loading-icon.html",
                "ravage-seller-list.html",
                "hook-dashboard-overview-8.html",
                "echo-tooltip.html",
                "havoc-notification.html",
                "viper-departments.html",
                "hurricane-dashboard-overview-8.html",
                "echo-profile-overview-default.html",
                "echo-dashboard-overview-2.html",
                "shuriken-settings-security.html",
                "havoc-transaction-list.html",
                "dagger-progress-bar.html",
                "shuriken-dashboard-overview-1.html",
                "hook-interactive.html",
                "havoc-file-manager-grid.html",
                "ravage-dashboard-overview-5.html",
                "raze-dashboard-overview-8.html",
                "hurricane-button.html",
                "viper-settings-account-deactivation.html",
                "raze-inbox.html",
                "echo-icon.html",
                "dagger-dashboard-overview-1.html",
                "raze-transaction-list.html",
                "hurricane-inbox.html",
                "shuriken-settings-connected-services.html",
                "shuriken-seller-list.html",
                "razor-profile-overview-events.html",
                "exort-dashboard-overview-6.html",
                "dagger-reviews.html",
                "raze-chat.html",
                "dagger-profile-overview-events.html",
                "dagger-chart.html",
                "dagger-slideover.html",
                "hook-regular-table.html",
                "hurricane-tom-select.html",
                "havoc-tooltip.html",
                "hurricane-loading-icon.html",
                "viper-wysiwyg-editor.html",
                "hook-dashboard-overview-4.html",
                "hook-seller-detail.html",
                "hook-chat.html",
                "hook-reviews.html",
                "viper-invoice.html",
                "viper-transaction-detail.html",
                "exort-inbox.html",
                "razor-dashboard-overview-2.html",
                "hurricane-notification.html",
                "havoc-slideover.html",
                "havoc-image-zoom.html",
                "raze-billing.html",
                "ravage-notification.html",
                "hurricane-dashboard-overview-4.html",
                "echo-button.html",
                "raze-calendar.html",
                "ravage-loading-icon.html",
                "hurricane-settings-two-factor-authentication.html",
                "ravage-settings-security.html",
                "shuriken-settings-device-history.html",
                "shuriken-settings-email-settings.html",
                "shuriken-profile-overview-contacts.html",
                "shuriken-chart.html",
                "ravage-interactive.html",
                "hurricane-settings-notification-settings.html",
                "hurricane-dashboard-overview-5.html",
                "hurricane-dynamic.html",
                "havoc-settings-two-factor-authentication.html",
                "raze-users.html",
                "ravage-settings-notification-settings.html",
                "hurricane-alert.html",
                "viper-slider.html",
                "raze-datepicker.html",
                "razor-dashboard-overview-3.html",
                "hurricane-users.html",
                "havoc-dashboard-overview-1.html",
                "raze-alert.html",
                "havoc-tabulator.html",
                "ravage-tom-select.html",
                "hook-dropdown.html",
                "dagger-add-user.html",
                "raze-profile-overview-contacts.html",
                "viper-icon.html",
                "hook-dashboard-overview-5.html",
                "viper-typography.html",
                "echo-settings-social-media-links.html",
                "raze-departments.html",
                "viper-point-of-sale.html",
                "exort-dashboard-overview-7.html",
                "hook-notification.html",
                "exort-seller-list.html",
                "exort-users.html",
                "dagger-dropdown.html",
                "hook-add-user.html",
                "hook-loading-icon.html",
                "razor-settings-preferences.html",
                "exort-validation.html",
                "dagger-interactive.html",
                "havoc-wysiwyg-editor.html",
                "shuriken-product-grid.html",
                "shuriken-tom-select.html",
                "dagger-validation.html",
                "havoc-tab.html",
                "hurricane-settings.html",
                "echo-datepicker.html",
                "hurricane-seller-list.html",
                "razor-image-zoom.html",
                "ravage-reviews.html",
                "exort-alert.html",
                "dagger-profile-overview-default.html",
                "dagger-tabulator.html",
                "echo-dynamic.html",
                "ravage-login.html",
                "dagger-transaction-detail.html",
                "ravage-dashboard-overview-4.html",
                "shuriken-transaction-detail.html",
                "viper-dashboard-overview-1.html",
                "shuriken-users.html",
                "echo-dashboard-overview-3.html",
                "echo-categories.html",
                "raze-chart.html",
                "dagger-seller-detail.html",
                "viper-settings.html",
                "havoc-dynamic.html",
                "echo-tab.html",
                "razor-dropdown.html",
                "hurricane-chart.html",
                "ravage-typography.html",
                "viper-profile-overview-contacts.html",
                "viper-tom-select.html",
                "dagger-accordion.html",
                "shuriken-slider.html",
                "havoc-chat.html",
                "shuriken-billing.html",
                "dagger-inbox.html",
                "havoc-calendar.html",
                "echo-add-user.html",
                "raze-settings-social-media-links.html",
                "razor-profile-overview-achievements.html",
                "shuriken-alert.html",
                "exort-invoice.html",
                "raze-wysiwyg-editor.html",
                "ravage-transaction-detail.html",
                "hook-profile-overview.html",
                "havoc-add-product.html",
                "razor-settings-two-factor-authentication.html",
                "shuriken-settings.html",
                "havoc-file-manager-list.html",
                "razor-add-user.html",
                "havoc-settings-notification-settings.html",
                "razor-settings-connected-services.html",
                "shuriken-typography.html",
                "hook-seller-list.html",
                "echo-settings-account-deactivation.html",
                "raze-categories.html",
                "echo-dropdown.html",
                "ravage-settings.html",
                "exort-chart.html",
                "razor-chat.html",
                "echo-file-upload.html",
                "viper-settings-security.html",
                "havoc-button.html",
                "shuriken-interactive.html",
                "dagger-regular-table.html",
                "ravage-dashboard-overview-8.html",
                "havoc-accordion.html",
                "echo-settings-preferences.html",
                "raze-dashboard-overview-5.html",
                "raze-point-of-sale.html",
            ],
            output: {
                // Configure output JS files
                entryFileNames: (chunkInfo) => {
                    const arr = chunkInfo.facadeModuleId
                        .replace(__dirname, "")
                        .split("/");

                    if (chunkInfo.facadeModuleId.split(".").at(1) === "html") {
                        return "[name].js";
                    }

                    return 'assets/js/${arr.slice(3).join("/")}';
                },
                // Configure output assets files
                assetFileNames: (assetInfo) => {
                    let extType = assetInfo.name.split(".").at(1);

                    if (/png|jpe?g|svg|gif|tiff|bmp|ico/i.test(extType)) {
                        extType = "images";
                    }
                    return 'assets/${extType}/[name][extname]';
                },
            },
        },
        commonjsOptions: {
            include: ["tailwind.config.js", "node_modules/**"],
        },
    },
    optimizeDeps: {
        include: ["tailwind-config"],
    },
    resolve: {
        alias: {
            "tailwind-config": path.resolve(__dirname, "./tailwind.config.js"),
        },
    },
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant