当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
3 Star 5 Fork 2

holyhigh/func.js-old
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rollup.config.tmpl.js 822 Bytes
一键复制 编辑 原始数据 按行查看 历史
holyhigh 提交于 2022-05-04 18:10 +08:00 . v 1.2.0
import {nodeResolve} from '@rollup/plugin-node-resolve';
import serve from 'rollup-plugin-serve';
import livereload from 'rollup-plugin-livereload';
import eslint from '@rollup/plugin-eslint';
import json from '@rollup/plugin-json';
const pkg = require('./package.json');
export default {
input: 'src/index.js',
output: {
file: 'public/func.esm.js',
format: 'esm',
banner: `/* func.js ${pkg.version} @${pkg.author} ${pkg.repository.url} */`,
},
plugins: [
nodeResolve(),
eslint({
include: ['src/**'],
exclude: ['node_modules/**', 'rollup.config.*.js'],
}),
serve({
open: true,
openPage: '/public/template.html',
host: 'localhost',
headers: {
'Access-Control-Allow-Origin': '*',
},
}),
livereload('public'),
json(),
],
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/holyhigh2/func.js-old.git
git@gitee.com:holyhigh2/func.js-old.git
holyhigh2
func.js-old
func.js-old
1.x

搜索帮助