feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
+49
View File
@@ -0,0 +1,49 @@
import { babel } from '@rollup/plugin-babel'
import resolve from '@rollup/plugin-node-resolve'
import vue from 'rollup-plugin-vue'
import cjs from '@rollup/plugin-commonjs'
import replace from '@rollup/plugin-replace'
import eslint from '@rollup/plugin-eslint'
import css from 'rollup-plugin-css-only'
import autoprefixer from 'autoprefixer'
import fs from 'fs-extra'
import CleanCSS from 'clean-css'
const config = require('../package.json')
export default {
input: 'src/index.js',
plugins: [
resolve({
mainFields: ['module', 'jsnext', 'main', 'browser'],
}),
eslint({
include: ['src/**/*.{js,vue}'],
}),
vue({
css: false,
style: {
postcssPlugins: [autoprefixer],
},
}),
css({
output: styles => {
fs.ensureDirSync('dist')
fs.writeFileSync('dist/vue-resize.css', new CleanCSS().minify(styles).styles)
},
}),
babel({
exclude: 'node_modules/**',
}),
cjs(),
replace({
VERSION: JSON.stringify(config.version),
}),
],
watch: {
include: 'src/**',
},
external: [
'vue',
],
}
+19
View File
@@ -0,0 +1,19 @@
import base from './rollup.config.base'
import { terser } from 'rollup-plugin-terser'
const config = Object.assign({}, base, {
output: {
exports: 'named',
name: 'VueResize',
file: 'dist/vue-resize.min.js',
format: 'iife',
sourcemap: true,
globals: {
vue: 'Vue',
},
},
})
config.plugins.push(terser({}))
export default config
+16
View File
@@ -0,0 +1,16 @@
import base from './rollup.config.base'
const config = Object.assign({}, base, {
output: {
name: 'vue-resize',
file: 'dist/vue-resize.esm.js',
format: 'es',
sourcemap: true,
},
external: [
...base.external,
// Additional externals here
],
})
export default config
+13
View File
@@ -0,0 +1,13 @@
import base from './rollup.config.base'
const config = Object.assign({}, base, {
output: {
exports: 'named',
name: 'vue-resize',
file: 'dist/vue-resize.umd.js',
format: 'umd',
sourcemap: true,
},
})
export default config