27 Star 134 Fork 20

江夏尧 / JSpider

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rollup.config.build.js 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
import license from 'rollup-plugin-license';
import del from 'rollup-plugin-delete';
import defaultPlugin from './script/rollup.plugins.js';
const plugins = [
del({ targets: 'dist/*' }),
...defaultPlugin,
license({
banner: {
content: {
file: './LICENSE',
},
},
}),
];
export default [
{
input: 'index.js', // 通用版本打包
plugins,
output: [
{
// 打包出口
file: './dist/JSpider.min.js',
format: 'iife',
name: 'JSpider',
},
{
// 打包出口
file: './dist/JSpider.umd.min.js',
format: 'umd',
name: 'JSpider',
},
{
// 打包出口
file: './dist/JSpider.cjs.min.js',
format: 'cjs',
exports: 'default',
},
{
// 打包出口
file: './dist/JSpider.esm.min.js',
format: 'es',
},
],
},
];
JavaScript
1
https://gitee.com/dongzhongzhidong/jspider.git
git@gitee.com:dongzhongzhidong/jspider.git
dongzhongzhidong
jspider
JSpider
master

搜索帮助