fix: Remove unused polyfills and update build config

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.
This commit is contained in:
Cole Bemis
2018-05-18 12:26:21 -07:00
parent bd129d9dcf
commit c978b1cb4e
5 changed files with 4659 additions and 346 deletions

View File

@@ -21,5 +21,5 @@ mkdir dist/icons
./node_modules/.bin/babel-node bin/build-svgs.js
# Build JavaScript library
./node_modules/.bin/webpack --output-filename feather.js
./node_modules/.bin/webpack --output-filename feather.min.js -p
./node_modules/.bin/webpack --output-filename feather.js --mode development
./node_modules/.bin/webpack --output-filename feather.min.js --mode production