mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 14:27:42 +01:00
* add configs
* Add vue components
* Add documentation
* add alpha release version
* improve npm ignore files
* add tests
* Make style and class attrs work
* 📦 bump version
* Add Icon suffix for component names
* bump version
* Add icon component example
* remove space
* add new build strategy
* Write a better intro
* add other node design
* fix
* add new default template
* add tempalte
* improve code
* small improvements
* small improvements
* move files
* Connect lucide with lucide-react
* Add support for vue
* Add licenses to packages
* Fix tests
* refactor build scripts
* Minor code fixes
* update homepage readme
* Update footer text
* Add a better introduction to packages
* Split up in tempaltes
* Add new types build file
* Setup workflow file
* update readme
* update
* Fix build
* remove debug code
* Add check if svgs have duplicated children
* Add check if their are no children
* small fixes
* last fixes in the build
* Move script to packages folder
* Fix tests and add types for lucide
* Add rule to package.json
* add types in build
* add npm ignore
* update package.jsons
40 lines
1.2 KiB
JavaScript
40 lines
1.2 KiB
JavaScript
/* eslint-disable import/no-extraneous-dependencies */
|
|
import babel from '@rollup/plugin-babel';
|
|
import bundleSize from '@atomico/rollup-plugin-sizes';
|
|
import compiler from '@ampproject/rollup-plugin-closure-compiler';
|
|
import { terser } from 'rollup-plugin-terser';
|
|
import visualizer from 'rollup-plugin-visualizer';
|
|
import license from 'rollup-plugin-license';
|
|
import replace from '@rollup/plugin-replace';
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
import commonJS from '@rollup/plugin-commonjs';
|
|
|
|
const plugins = (pkg, minify) =>
|
|
[
|
|
replace({
|
|
'icons = {}': 'icons = allIcons',
|
|
delimiters: ['', ''],
|
|
preventAssignment: false,
|
|
}),
|
|
babel({
|
|
babelHelpers: 'bundled',
|
|
}),
|
|
// The two minifiers together seem to procude a smaller bundle 🤷♂️
|
|
minify && compiler(),
|
|
minify && terser(),
|
|
license({
|
|
banner: `${pkg.name} v${pkg.version} - ${pkg.license}`,
|
|
}),
|
|
bundleSize(),
|
|
resolve(),
|
|
commonJS({
|
|
include: 'node_modules/**',
|
|
}),
|
|
visualizer({
|
|
sourcemap: true,
|
|
filename: `stats/${pkg.name}${minify ? '-min' : ''}.html`,
|
|
}),
|
|
].filter(Boolean);
|
|
|
|
export default plugins;
|