-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
29 lines (28 loc) · 853 Bytes
/
webpack.config.js
File metadata and controls
29 lines (28 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const path = require('path');
module.exports = {
mode: "development",
watch: true,
entry: {
"twitsdropbox": path.resolve(__dirname, './src/index-dropbox.js')
},
resolve:{
alias: {
dropbox: path.join(__dirname, 'node_modules/dropbox/dist/Dropbox-sdk.min.js'),
// path: path.join(__dirname, "node_modules/path"),
// buffer: path.join(__dirname, "node_modules/buffer"),
// "rxjs/operators": path.join(__dirname, "node_modules/rxjs/bundles/rxjs.umd.min.js"),
// rxjs: path.join(__dirname, "node_modules/rxjs/bundles/rxjs.umd.min.js"),
}
},
output: {
filename: '[name]-lib.js',
path: path.resolve(__dirname),
library: "[name]",
libraryTarget: "var"
},
// target: '',
externals: {
'utf-8-validate': 'commonjs utf-8-validate',
'bufferutil': 'commonjs bufferutil'
}
};