mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-04 20:57:38 +08:00
30 lines
640 B
JavaScript
30 lines
640 B
JavaScript
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
|
|
|
module.exports = {
|
|
entry: "./src/main.ts",
|
|
output: {
|
|
filename: "./gotty-bundle.js"
|
|
},
|
|
devtool: "source-map",
|
|
resolve: {
|
|
extensions: [".ts", ".tsx", ".js"],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
loader: "ts-loader",
|
|
exclude: /node_modules/
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
include: /node_modules/,
|
|
loader: 'license-loader'
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new UglifyJSPlugin()
|
|
]
|
|
};
|