1 Star 0 Fork 1

木森/cropperjs

forked from Oyxing/cropperjs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rollup.config.js 822 Bytes
一键复制 编辑 原始数据 按行查看 历史
Chen Fengyuan 提交于 2018-06-24 11:55 . build: update
const babel = require('rollup-plugin-babel');
const changeCase = require('change-case');
const createBanner = require('create-banner');
const pkg = require('./package');
pkg.name = pkg.name.replace('js', '');
const name = changeCase.pascalCase(pkg.name);
const banner = createBanner({
data: {
name: `${name}.js`,
year: '2015-present',
},
});
module.exports = {
input: 'src/index.js',
output: [
{
banner,
name,
file: `dist/${pkg.name}.js`,
format: 'umd',
},
{
banner,
file: `dist/${pkg.name}.common.js`,
format: 'cjs',
},
{
banner,
file: `dist/${pkg.name}.esm.js`,
format: 'esm',
},
{
banner,
name,
file: `docs/js/${pkg.name}.js`,
format: 'umd',
},
],
plugins: [
babel(),
],
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/musenlinlin/cropperjs.git
git@gitee.com:musenlinlin/cropperjs.git
musenlinlin
cropperjs
cropperjs
master

搜索帮助