mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
c978b1cb4e
Removes polyfills for `Object.assign` and `Set` which, as far as I can tell, are unused in the codebase. Updates `webpack` from 3 to 4. Replaces `babel-preset-es2015` with `babel-preset-env`. Reduces the minified bundle size (`feather.min.js`) by **9.3kB** (72.4kB to 63.1kB). Does not change any functionality of the library.
26 lines
635 B
Bash
Executable File
26 lines
635 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Process SVG files
|
|
./node_modules/.bin/babel-node bin/process-svgs.js
|
|
|
|
# Create dist directory
|
|
./node_modules/.bin/rimraf dist
|
|
mkdir dist
|
|
|
|
# Build icons.json
|
|
./node_modules/.bin/babel-node bin/build-icons-json.js
|
|
|
|
# Build SVG sprite
|
|
./node_modules/.bin/babel-node bin/build-sprite.js
|
|
|
|
# Create dist/icons directory
|
|
./node_modules/.bin/rimraf dist/icons
|
|
mkdir dist/icons
|
|
|
|
# Build SVG icons
|
|
./node_modules/.bin/babel-node bin/build-svgs.js
|
|
|
|
# Build JavaScript library
|
|
./node_modules/.bin/webpack --output-filename feather.js --mode development
|
|
./node_modules/.bin/webpack --output-filename feather.min.js --mode production
|