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

能否把依赖的第三方组件独立出来? #28

Closed
Snowpine opened this issue Mar 3, 2015 · 4 comments
Closed

能否把依赖的第三方组件独立出来? #28

Snowpine opened this issue Mar 3, 2015 · 4 comments

Comments

@Snowpine
Copy link

Snowpine commented Mar 3, 2015

Editor.md编辑器依赖的第三方组件,直接在lib文件夹了,但系统已经在其它地方加载了某些第三方组件,比如codemirror。导致系统中的组件重复了。

@pandao
Copy link
Owner

pandao commented Mar 3, 2015

可以通过配置项path来指定依赖的第三方组件lib的位置,不过依赖的CodeMirror模块我已经合并了(在不使用Require.js的情况下,加载合并的CodeMirror模块)。
既然用了Editor.md,一般情况下,大多是不会再用到CodeMirror的,可以直接用Editor.md加载的CodeMirror。

@pandao pandao closed this as completed Mar 3, 2015
@Snowpine
Copy link
Author

Snowpine commented Mar 3, 2015

恩,你的意思我理解!我也能安装起来。谢谢!
我是用的Yii2,用composer安装了Editor.md,安装在vendor/bower目录下,但因为vendor不在web可访问目录下,所以我必须用Yii2的AssetBundle把Editor.md发布出去,发布好的文件在一个随机目录下。
我必须发布Editor.md的整个目录,不能只发布js和css,否则依赖包对应不起来,这时候美中不足的是很多不需要的文件也发布出来了,比如jquery.min.js。

@pandao
Copy link
Owner

pandao commented Mar 3, 2015

@Snowpine jquery.min.js不是动态加载的,所以不用发布,使用你自己目录下的jquery;

我打算把jquery.min.js等不是动态加载的模块移出lib目录,这是我的一个疏忽。

@pandao pandao reopened this Mar 3, 2015
@pandao
Copy link
Owner

pandao commented Mar 3, 2015

@v1.1.8 fixed.

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

2 participants