Skip to content

Commit 25ea1a3

Browse files
committed
Using the more conventional webpack approach.
1 parent c529a94 commit 25ea1a3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"chai": "3.5.0",
6060
"core-js": "2.4.0",
6161
"coveralls": "2.11.9",
62-
"expose-loader": "0.7.1",
6362
"istanbul": "0.4.3",
6463
"json-loader": "0.5.4",
6564
"mocha": "2.5.3",
@@ -83,4 +82,4 @@
8382
"type": "git",
8483
"url": "https://github.com/arangodb/arangojs.git"
8584
}
86-
}
85+
}

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ module.exports = {
66
entry: resolve(__dirname, 'src/index.js'),
77
output: {
88
path: __dirname,
9-
filename: 'arangojs.min.js'
9+
filename: 'arangojs.min.js',
10+
library: 'arangojs'
1011
},
1112
module: {
1213
loaders: [
13-
{test: /index\.js$/, loader: 'expose?arangojs'},
1414
{test: /\.js$/, loader: 'babel-loader'},
1515
{test: /\.json$/, loader: 'json-loader'}
1616
]

0 commit comments

Comments
 (0)