mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
24 lines
573 B
JavaScript
24 lines
573 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',
|
|
// Prevents webpack from referencing `window` in the UMD build
|
|
// Source: https://git.io/vppgU
|
|
globalObject: "typeof self !== 'undefined' ? self : this",
|
|
},
|
|
devtool: 'source-map',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
loader: 'babel-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
};
|