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

Can it be bundled in a CDN as non-minified UMD #12

Open
Teolone88 opened this issue Dec 23, 2024 · 1 comment
Open

Can it be bundled in a CDN as non-minified UMD #12

Teolone88 opened this issue Dec 23, 2024 · 1 comment

Comments

@Teolone88
Copy link

Teolone88 commented Dec 23, 2024

Would be possible to bundle this beauty inside an non-minified universal module definition?
Thank you again for this.

@Teolone88 Teolone88 changed the title Can it be bundled in a CDN as UMD Can it be bundled in a CDN as non-minified UMD Dec 23, 2024
@Teolone88
Copy link
Author

Teolone88 commented Dec 23, 2024

I have removed the minification

  build: {
    outDir: 'lib',
    lib: {
      entry: path.resolve(__dirname, 'src/index.ts'),
      name: 'EchoEditor',
    },
    rollupOptions: {
      output: {
        exports: 'named',
        globals: {
          vue: 'vue',
        },
      },
      external: ['vue'],
    },
    minify: false, // Explicitly disables minification
    sourcemap: true, // Includes source maps
  },

However, I am unable to run it on plain HTML and I would like to wrap inside the vue component without calling it externally.
Can you help me with this? I am not a pro but i really like how you have packaged this simple but powerful rich text editor.

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