forked from SOBotics/AdvancedFlagging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
31 lines (29 loc) · 883 Bytes
/
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
var webpack = require('webpack');
var UnminifiedWebpackPlugin = require('unminified-webpack-plugin');
const { TsConfigPathsPlugin } = require('awesome-typescript-loader');
module.exports = {
entry: "./src/AdvancedFlagging.ts",
target: "node",
output: {
filename: "./dist/out.min.js"
},
resolve: {
// Add '.ts' and '.tsx' as a resolvable extension.
extensions: [".webpack.js", ".web.js", ".ts", ".tsx", ".js"],
plugins: [
new TsConfigPathsPlugin()
]
},
module: {
loaders: [
// all files with a '.ts' or '.tsx' extension will be handled by 'ts-loader'
{ test: /\.tsx?$/, loader: "ts-loader" }
]
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: { warnings: false }
}),
new UnminifiedWebpackPlugin(),
]
}