mirror of
https://github.com/dagucloud/dagu.git
synced 2026-12-06 13:36:49 +00:00
28 lines
579 B
JavaScript
28 lines
579 B
JavaScript
const { merge } = require('webpack-merge');
|
|
const common = require('./webpack.common.js');
|
|
const path = require('path');
|
|
|
|
module.exports = merge(common, {
|
|
mode: 'production',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: [
|
|
{
|
|
loader: 'ts-loader',
|
|
},
|
|
],
|
|
include: path.resolve(__dirname, 'src'),
|
|
exclude: path.resolve(__dirname, 'node_modules'),
|
|
},
|
|
],
|
|
},
|
|
output: {
|
|
filename: 'bundle.js',
|
|
path: path.resolve(__dirname, 'dist'),
|
|
publicPath: 'auto',
|
|
clean: true,
|
|
},
|
|
});
|