-
Notifications
You must be signed in to change notification settings - Fork 10
/
webpack.config.js
44 lines (42 loc) · 1.35 KB
/
webpack.config.js
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const path = require('path')
module.exports = {
entry: {
background: [
path.join(__dirname, 'src/ts/common/account.ts'),
path.join(__dirname, 'src/ts/common/settings.ts'),
path.join(__dirname, 'src/ts/app/util.ts'),
path.join(__dirname, 'src/ts/app/app.ts'),
path.join(__dirname, 'src/ts/app/background.ts')
],
popup: [
path.join(__dirname, 'src/ts/common/settings.ts'),
path.join(__dirname, 'src/ts/client/main.ts'),
path.join(__dirname, 'src/ts/client/module.ts'),
path.join(__dirname, 'src/ts/client/services/settings.service.ts'),
path.join(__dirname, 'src/ts/client/components/popup.component.ts')
],
addTo: [
path.join(__dirname, 'src/ts/common/addTo.ts')
],
options: [
path.join(__dirname, 'src/ts/options/main.ts'),
path.join(__dirname, 'src/ts/options/module.ts'),
path.join(__dirname, 'src/ts/options/options.component.ts')
]
},
output: {
path: path.join(__dirname, 'src/js'),
filename: '[name].bundle.js'
},
module: {
loaders: [{
exclude: /node_modules/,
loader: 'ts-loader'
}]
},
resolve: {
extensions: ['.ts', '.js']
},
plugins: [
]
}