2 Star 5 Fork 0

BarZu / weixinvote

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.js 598 Bytes
一键复制 编辑 原始数据 按行查看 历史
chjtx 提交于 2017-08-25 16:12 . 完成跨域
var jtaroBundle = require('jtaro-bundle')
// var uglify = require('rollup-plugin-uglify')
var alias = require('rollup-plugin-paths')
jtaroBundle.bundle({
origin: 'index.html', // 开发目录的index.html
target: 'www/index_template.html', // 生产目录的index.html模板
copies: [], // 直接拷贝的文件(夹)
// 自定义使用rollup打包时使用的插件
rollupPlugins: [alias({
'node@': './node_modules/', // 以入口文件所在路径为基准
'ui@': './node_modules/jtaro-ui/components/'
})],
callback: function () {
console.log('打包完成')
}
})
JavaScript
1
https://gitee.com/chenjianlong/weixinvote.git
git@gitee.com:chenjianlong/weixinvote.git
chenjianlong
weixinvote
weixinvote
master

搜索帮助