9 Star 31 Fork 2

小为/timeago.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rollup.config.js 662 Bytes
一键复制 编辑 原始数据 按行查看 历史
/**
* Created by hustcc on 18/5/20.
* Contract: i@hust.cc
*/
import { uglify } from 'rollup-plugin-uglify';
import resolve from 'rollup-plugin-node-resolve';
import typescript from 'rollup-plugin-typescript';
module.exports = [
{
input: 'src/index.ts',
output: {
file: 'dist/timeago.min.js',
name: 'timeago',
format: 'umd',
},
plugins: [
resolve(),
typescript(),
uglify(),
],
},
{
input: 'src/full.ts',
output: {
file: 'dist/timeago.full.min.js',
name: 'timeago',
format: 'umd',
},
plugins: [
resolve(),
typescript(),
uglify(),
],
},
];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/hustcc/timeago.js.git
git@gitee.com:hustcc/timeago.js.git
hustcc
timeago.js
timeago.js
master

搜索帮助