-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
31 lines (30 loc) · 885 Bytes
/
webpack.config.js
File metadata and controls
31 lines (30 loc) · 885 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
30
31
var path = require('path');
var webpack = require('webpack')
var nodeExternals = require('webpack-node-externals');
module.exports = {
entry: {
'/gql/index': './gql/index',
'/soundcloud/trackMetadata': './soundcloud/trackMetadata',
'/soundcloud/trackFiles': './soundcloud/trackFiles',
'/music/triggerReleaseReadinessChecker': './music/triggerReleaseReadinessChecker',
'/music/metadataCheck': './music/metadataCheck',
'/music/objectCheck': './music/objectCheck',
'/music/objectCopy': './music/objectCopy',
},
devtool: "source-map",
target: 'node',
externals: [nodeExternals()],
module: {
loaders: [{
test: /\.js$/,
loaders: ['babel-loader'],
include: __dirname,
exclude: /node_modules/,
}]
},
output: {
libraryTarget: 'commonjs',
path: path.join(__dirname, '.webpack'),
filename: '[name].js'
}
}