2017-08-22 07:58:15 +00:00
|
|
|
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
|
|
|
|
2017-05-21 23:16:24 +00:00
|
|
|
module.exports = {
|
|
|
|
entry: "./src/main.ts",
|
|
|
|
output: {
|
2017-08-22 07:03:19 +00:00
|
|
|
filename: "./dist/gotty-bundle.js"
|
2017-05-21 23:16:24 +00:00
|
|
|
},
|
|
|
|
devtool: "source-map",
|
|
|
|
resolve: {
|
|
|
|
extensions: [".ts", ".tsx", ".js"],
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
loader: "ts-loader",
|
2017-08-23 01:58:18 +00:00
|
|
|
exclude: /node_modules/
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
include: /node_modules/,
|
|
|
|
loader: 'license-loader'
|
2017-05-21 23:16:24 +00:00
|
|
|
}
|
|
|
|
]
|
2017-08-22 07:58:15 +00:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new UglifyJSPlugin()
|
|
|
|
]
|
2017-05-21 23:16:24 +00:00
|
|
|
};
|