Skip to content

Commit 67453c7

Browse files
committed
Change webpack configuration for library
1 parent 7477288 commit 67453c7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-fullscreen-loading",
3-
"version": "0.0.2",
3+
"version": "0.0.4",
44
"description": "Minimal fullscreen loading for React",
55
"main": "dist/loading.js",
66
"scripts": {

webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ module.exports = {
2121
output: {
2222
path: `${__dirname}/dist`,
2323
publicPath: '/',
24-
filename: 'bundle.js'
24+
filename: 'loading.js',
25+
libraryTarget: 'umd',
26+
library: 'Loading'
2527
}
2628
}
2729

0 commit comments

Comments
 (0)