Compare commits

..

3 Commits

Author SHA1 Message Date
2ee03d261c fix: Set unpkg default to feather.min.js 2018-05-18 16:13:35 -07:00
dc3c0cc47e style: Fix formatting 2018-05-18 16:07:18 -07:00
d5ba74d93b fix: Fix UMD build for node
Prevents webpack from referencing `window` in the UMD build which was causing an error in node.
2018-05-18 16:07:18 -07:00
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
"version": "0.0.0-development",
"description": "Simply beautiful open source icons",
"main": "dist/feather.js",
"unpkg": "dist/feather.min.js",
"files": [
"dist"
],

View File

@ -6,6 +6,9 @@ module.exports = {
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: {