1 Star 0 Fork 1

谍影风云/func.browser.js

forked from holyhigh/func.browser.js 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rollup.config.js 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
holyhigh 提交于 2022-10-10 22:13 . v 0.3.0
/* eslint-disable max-len */
import commonjs from '@rollup/plugin-commonjs'
import { terser } from 'rollup-plugin-terser'
import banner2 from 'rollup-plugin-banner2'
import json from '@rollup/plugin-json'
import copy from 'rollup-plugin-copy'
import typescript from 'rollup-plugin-typescript2'
import clear from 'rollup-plugin-clear'
const pkg = require('./package.json')
const targets = [
{
input: 'src/index.ts',
plugins: [
clear({
targets: ['dist'],
watch: true,
}),
typescript(),
commonjs(),
banner2(
() => `/**
* func.browser.js v${pkg.version}
* ${pkg.description}
* @${pkg.author}
* ${pkg.repository.url}
*/
`
),
json(),
copy({
targets: [
{
src: [
'CHANGELOG.md',
'LICENSE',
'README.md',
'package.json',
'.npmignore',
],
dest: 'dist',
},
],
}),
],
output: [
{
file: 'dist/index.esm.js',
format: 'esm',
plugins: [terser()],
},
],
},
]
export default targets
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/LeeJiancong/func.browser.js.git
git@gitee.com:LeeJiancong/func.browser.js.git
LeeJiancong
func.browser.js
func.browser.js
master

搜索帮助