1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/jaywcjlove-iNotify

Клонировать/Скачать
rollup.config.mjs 1.7 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
jaywcjlove Отправлено 06.04.2023 04:51 df137ff
import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import terser from '@rollup/plugin-terser';
import json from '@rollup/plugin-json';
import sizes from 'rollup-plugin-sizes';
import * as banner from 'bannerjs';
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const pkg = require('./package.json');
export default [
{
input: 'src/main.js',
output: [
{
file: 'dist/notify.common.js',
format: 'cjs',
name: 'Notify',
exports: 'auto',
banner: banner.multibanner(),
sourcemap: true,
},
{
file: pkg.module,
format: 'es',
name: 'Notify',
banner: banner.multibanner(),
sourcemap: true,
},
],
plugins: [
json(),
nodeResolve({
browser: true,
}),
commonjs(),
sizes(),
],
},
{
input: 'src/main.js',
output: [
{
file: pkg.unpkg,
format: 'umd',
// format: 'iife',
name: 'Notify',
banner: banner.multibanner(),
sourcemap: true,
},
],
plugins: [
json(),
nodeResolve({
browser: true,
}),
commonjs(),
sizes(),
],
},
{
input: 'src/main.js',
output: [
{
file: pkg.unpkg.replace(/.js$/, '.min.js'),
format: 'umd',
// format: 'iife',
name: 'Notify',
banner: banner.onebanner(),
sourcemap: true,
},
],
plugins: [
json(),
nodeResolve({
browser: true,
}),
terser(),
commonjs(),
sizes(),
],
},
];

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/jaywcjlove-iNotify.git
git@api.gitlife.ru:oschina-mirror/jaywcjlove-iNotify.git
oschina-mirror
jaywcjlove-iNotify
jaywcjlove-iNotify
master