mirror of
https://github.com/zoriya/EAU.git
synced 2025-12-05 22:26:14 +00:00
28 lines
632 B
JavaScript
28 lines
632 B
JavaScript
const path = require("path");
|
|
// const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
|
|
|
module.exports = {
|
|
entry: [
|
|
"./src/ts/index.ts",
|
|
"./src/ts/Carousel.ts"
|
|
],
|
|
devtool: 'inline-source-map',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
extensions: ['.tsx', '.ts', '.js']
|
|
},
|
|
output: {
|
|
filename: "index.js",
|
|
path: path.resolve(__dirname, "dist/js")
|
|
},
|
|
mode: "production",
|
|
target: "electron-renderer"
|
|
}; |