gotty/js/webpack.config.js

25 lines
506 B
JavaScript
Raw Normal View History

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