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.
21 lines
407 B
JavaScript
21 lines
407 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: ['core-js/fn/array/from', path.resolve(__dirname, 'src/index.js')],
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
libraryTarget: 'umd',
|
|
library: 'feather',
|
|
},
|
|
devtool: 'source-map',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
loader: 'babel-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
};
|