Skip to content

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

Merged
hinesboy merged 1 commit intohinesboy:masterfrom
zhaokuohaha:feature/lib-name
Apr 30, 2019
Merged

修改编译输出对象名称#415
hinesboy merged 1 commit intohinesboy:masterfrom
zhaokuohaha:feature/lib-name

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.

2 participants