UNPKG

@swift-ws/gulp-kit

Version:

A starter kit for automating frontend development using Gulp.js.

39 lines (38 loc) 710 B
import TerserPlugin from "terser-webpack-plugin"; import {resolve} from "path"; export const webpackConfig = { mode : 'production', devtool : false, output : { filename: '[name].min.js', }, module : { rules: [ { test : /\.ts?$/, use: { loader: 'ts-loader', options: { configFile: resolve(import.meta.dirname, 'tsconfig.json'), }, }, exclude: /node_modules/, }, ], }, resolve : { extensions: ['.ts', '.tsx', '.js'], }, optimization: { minimize : true, minimizer: [ new TerserPlugin({ extractComments: false, terserOptions : { keep_classnames: true, keep_fnames : true, }, }), ], }, };