mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 05:51:56 +08:00
18 lines
414 B
JavaScript
18 lines
414 B
JavaScript
// production config
|
|
const merge = require('webpack-merge')
|
|
const { resolve } = require('path')
|
|
|
|
const commonConfig = require('./common')
|
|
|
|
module.exports = merge(commonConfig, {
|
|
mode: 'production',
|
|
entry: './index.tsx',
|
|
output: {
|
|
filename: 'js/bundle.[hash].min.js',
|
|
path: resolve(__dirname, '../../dist'),
|
|
publicPath: '/',
|
|
},
|
|
devtool: 'source-map',
|
|
plugins: [],
|
|
})
|