7 Star 4 Fork 3

MJ PC Lab/jquery-tab

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rollup.config.js 615 Bytes
一键复制 编辑 原始数据 按行查看 历史
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import {uglify} from 'rollup-plugin-uglify';
const getConfig = function (filename) {
const isMinify = filename.indexOf('.min') >= 0;
const config = {
input: 'built/index.js',
output: {
name: 'jquery-tab',
format: 'umd',
globals: {
jquery: 'jQuery'
},
file: `dist/${filename}.js`,
},
external: ['jquery'],
plugins: [
resolve(),
commonjs(),
isMinify && uglify({ie8: true})
],
};
return config;
};
export default [
getConfig('jquery-tab'),
getConfig('jquery-tab.min')
];
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/mjpclab/jquery-tab.git
git@gitee.com:mjpclab/jquery-tab.git
mjpclab
jquery-tab
jquery-tab
master

搜索帮助