mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-19 18:22:10 +08:00
Add mte to the Markdown editor to enhance table editing, e.g. https://susisu.github.io/mte-demo/ (#1)
Signed-off-by: Seanly Liu <seanly@opsbox.dev>
This commit is contained in:
15
static/table-editor/webpack.config.js
Normal file
15
static/table-editor/webpack.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// webpack.config.js
|
||||
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: './src/main.js', // 库的入口文件
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist'), // 输出目录
|
||||
filename: 'index.js', // 输出文件名称
|
||||
library: 'TableEditor', // 库的全局变量名
|
||||
libraryTarget: 'umd', // 输出库的目标格式
|
||||
umdNamedDefine: true // 对UMD模块进行命名定义
|
||||
},
|
||||
// 配置其他选项...
|
||||
};
|
Reference in New Issue
Block a user