Files
roundcubemail/plugins/markdown_editor/rollup.config.js
Pablo Zmdl e34a813355 New plugin "markdown_editor": compose in markdown, send as HTML
This adds a markdown editor that sends HTML to the server.

It uses codemirror and some custom code to show a syntax highlighted
textarea and some buttons to help editing
(including a preview).

Drafts get marked via an internal email header that causes the markdown
editor to automatically start if a message composition is
continued that was started using the markdown editor.
2025-10-27 15:34:19 +01:00

23 lines
769 B
JavaScript

import { nodeResolve } from '@rollup/plugin-node-resolve';
// Un-comment to generate bundle-stats.html
// import { bundleStats } from 'rollup-plugin-bundle-stats';
import terser from '@rollup/plugin-terser';
export default {
input: 'javascript/index.js',
output: [
{
file: 'markdown_editor.min.js',
format: 'es',
plugins: [terser()],
// Un-comment to generate bundle-stats.html
// assetFileNames: 'assets/[name].[hash][extname]',
// chunkFileNames: 'assets/[name].[hash].js',
// entryFileNames: 'assets/[name].[hash].js',
},
],
plugins: [nodeResolve()],
// Un-comment to generate bundle-stats.html
// plugins: [nodeResolve(), bundleStats()]
};