-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathwebpack.config.js
35 lines (35 loc) · 1.04 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
module.exports = {
entry: {
'coding': './coding.js',
'signing_and_validating': './signing_and_validating.js',
'encryption': './encryption.js',
'base64': ['./base64.js'],
'sha256': ['./sha256.js'],
'hmac': ['./hmac.js'],
'hs256': './hs256.js',
'rsassa': ['./rsassa.js'],
'rs256': './rs256.js',
'ps256': './ps256.js',
'es256': './es256.js'
},
output: {
path: __dirname + '/dist/',
filename: "[name].js",
devtoolModuleFilenameTemplate: "[absolute-resource-path]",
devtoolFallbackModuleFilenameTemplate: "[absolute-resource-path]?[hash]"
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel', // 'babel-loader' is also a legal name to reference
query: {
presets: ['es2015']
}
}
]
},
target: 'node',
devtool: "source-map"
};