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

OSCHINA-MIRROR/oschina-osc-bullet

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
rollup.config.js 953 Байты
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
HaPBoy Отправлено 07.04.2020 13:15 aac431d
import babel from 'rollup-plugin-babel';
import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';
import postcss from 'rollup-plugin-postcss';
import { uglify } from "rollup-plugin-uglify";
import autoprefixer from 'autoprefixer';
const production = !process.env.ROLLUP_WATCH;
export default {
input: 'src/main.js',
output: [
{
file: 'dist/osc-bullet.min.js',
format: 'umd',
sourcemap: true,
globals: {
jquery: '$'
}
}
],
external: ['jquery'],
plugins: [
resolve(),
commonjs(),
postcss({
extract: './dist/osc-bullet.min.css',
minimize: production && true,
sourceMap: true,
plugins: [
autoprefixer({
grid: true
})
]
}),
production && babel({
babelrc: false,
presets: [['@babel/preset-env']],
exclude: 'node_modules/**'
}),
production && uglify(),
]
};

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

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

1
https://api.gitlife.ru/oschina-mirror/oschina-osc-bullet.git
git@api.gitlife.ru:oschina-mirror/oschina-osc-bullet.git
oschina-mirror
oschina-osc-bullet
oschina-osc-bullet
master