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

修改编译输出对象名称 #415

Merged
merged 1 commit into from Apr 30, 2019

Conversation

zhaokuohaha
Copy link
Contributor

解决issue 409 无法通过CDN引入依赖的方式

@zhaokuohaha
Copy link
Contributor Author

测试方法(vue-cli 2,.x):

  1. 移除 package.json 中 mavon-editor 的依赖
  2. index.html 中添加 script 引用: https://cdn.jsdelivr.net/gh/zhaokuohaha/mavonEditor@master/dist/mavon-editor.js
  3. webpack.base.conf 中:
module.exports={
  // ...
  externals: {
        "mavon-editor":"MavonEditor",
    },
}

@hinesboy hinesboy merged commit 5ca0e4a into hinesboy:master Apr 30, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants