1 Star 0 Fork 18

搬砖现场/toc-helper

forked from Langzi/toc-helper 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rollup.config.js 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
小浪 提交于 2019-03-03 13:05 . 提交源码
const babel = require('rollup-plugin-babel');
const resolve =require( 'rollup-plugin-node-resolve')
const commonjs =require( 'rollup-plugin-commonjs')
const uglify = require( 'rollup-plugin-uglify')
const pkg = require('./package.json')
module.exports = {
input: './js/toc-helper.js',
output: {
file: './js/toc-helper.min.js',
format: 'umd',
name: 'TocHelper',
banner: `/*!\nDate ${new Date()} \nVersion ${pkg.version} \nCopyright © 2018-${new Date().getFullYear()} Design By ${pkg.author}\n*/`,
},
plugins: [
commonjs({
// exclude: ['node_modules/**']
}),
resolve({
jsnext: true,
main: true,
browser: true
}),
babel({
babelrc: true,
externalHelpers: false,
runtimeHelpers: false,
exclude: 'node_modules/**'
}),
uglify.uglify({
output: {
comments: /^!/
}
})
]
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/zhaowx_admin/toc-helper.git
git@gitee.com:zhaowx_admin/toc-helper.git
zhaowx_admin
toc-helper
toc-helper
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385