我的百度编辑器放在 static 目录下的,
在组件里主体里引入了
import '../../static/ueditor/ueditor.config.js'
import '../../static/ueditor/ueditor.all.js'
import '../../static/ueditor/lang/zh-cn/zh-cn.js'
以上几个文件,以前没有注意,在我打包的时候。把这编辑器里很多东西都打包进去了,导致文件比较大。怎么剔除它呢???不想让它被打包进去!!
在配置文件
modules
里可以设置exclude
,具体看文档吧