mint-ui / mint-loadmore

A two-direction mobile load-more component for vue.js
MIT License
315 stars 102 forks source link

关于 externals 和多配置文件 #1

Closed QingWei-Li closed 8 years ago

QingWei-Li commented 8 years ago

https://webpack.github.io/docs/library-and-externals.html#comment-2002619793 文档上的一条评论里介绍了可以针对不同模式配置

cooking.add('externals.vue', 'vue');

可以改为

cooking.add('externals.vue', {
  root: 'Vue', // window.Vue
  commonjs: 'vue',
  commonjs2: 'vue',
  amd: 'vue'
});

现在 cooking 支持运行多配置文件,传入文件数组(逗号分隔),如果有配置中有用 server 只会启动最后一个文件的 server

cooking watch -c cooking.conf.js,cooking.example.conf.js
Leopoldthecoder commented 8 years ago