-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
30 lines (29 loc) · 805 Bytes
/
Copy pathwebpack.config.js
File metadata and controls
30 lines (29 loc) · 805 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
var webpack = require("webpack");
var path = require('path');
var fs = require('fs');
const prod = process.env.NODE_ENV === 'production';
module.exports = {
devtool: undefined,
entry: path.join(process.cwd(), 'src', process.env.ENTRY || 'index'),
plugins: [
new webpack.DefinePlugin({ "global.GENTLY": false })
].filter(function(i) { return i != null; }),
target: 'node',
module: {
loaders: [
{
test: /.*\.ts$/,
exclude: /node_modules/,
loader: 'awesome-typescript-loader'
}
]
},
resolve: {
extensions: ['.ts', '.js']
},
output: {
libraryTarget: 'commonjs',
path: path.join(process.cwd(), 'build/dist'),
filename: 'index.js'
}
};