19 Star 66 Fork 21

MichaelSun/watermark-js-plus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rollup.config.mjs 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
MichaelSun 提交于 2024-09-27 09:54 . test: update test function
import filesize from 'rollup-plugin-filesize'
import babel from '@rollup/plugin-babel'
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import eslint from '@rollup/plugin-eslint'
import typescript from '@rollup/plugin-typescript'
import strip from '@rollup/plugin-strip'
import postcss from 'rollup-plugin-postcss'
import { visualizer } from 'rollup-plugin-visualizer'
import autoprefixer from 'autoprefixer'
import cssnano from 'cssnano'
import { generateOutputs } from './build/index.mjs'
const plugins = [
eslint({
throwOnError: true,
throwOnWarning: true,
include: ['src/**'],
exclude: ['node_modules/**', 'src/style/**']
}),
resolve(),
strip(),
typescript(),
postcss({
plugins: [
autoprefixer(),
cssnano()
]
}),
commonjs(),
filesize(),
babel({ babelHelpers: 'runtime', exclude: ['node_modules/**'] }),
visualizer()
]
export default [
{
input: 'src/index.ts',
output: generateOutputs(),
plugins
},
{
input: 'src/index.ie.ts',
output: generateOutputs('ie'),
plugins
}
]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/cs_huayi_zhensherlock/watermark-js-plus.git
git@gitee.com:cs_huayi_zhensherlock/watermark-js-plus.git
cs_huayi_zhensherlock
watermark-js-plus
watermark-js-plus
main

搜索帮助