Skip to content

Commit 6811129

Browse files
author
Matt Mazzola
committed
Change webpack.config to enforce library name as package name and also target umd library.
1 parent a30b676 commit 6811129

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎webpack.config.js‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
var package = require('./package.json');
2+
13
module.exports = {
2-
entry: './src/powerbi.ts',
4+
entry: {
5+
'powerbi': './src/powerbi.ts'
6+
},
37
output: {
48
path: __dirname + "/dist",
5-
filename: 'powerbi.js'
9+
filename: '[name].js',
10+
library: package.name,
11+
libraryTarget: 'umd'
612
},
713
devtool: 'source-map',
814
resolve: {

0 commit comments

Comments
 (0)