Closed QingWei-Li closed 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
棒
https://webpack.github.io/docs/library-and-externals.html#comment-2002619793 文档上的一条评论里介绍了可以针对不同模式配置
可以改为
现在 cooking 支持运行多配置文件,传入文件数组(逗号分隔),如果有配置中有用 server 只会启动最后一个文件的 server