mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-21 19:34:19 +01:00
25 lines
600 B
JavaScript
25 lines
600 B
JavaScript
const path = require('path');
|
|
const merge = require('webpack-merge');
|
|
const config = require('./webpack.config.js');
|
|
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
|
module.exports = merge(config, {
|
|
mode: 'development',
|
|
devServer: {
|
|
contentBase: path.join(__dirname, 'dist'),
|
|
compress: true,
|
|
port: 9000,
|
|
proxy: [{
|
|
context: ['/auth_token.js', '/ws'],
|
|
target: 'http://localhost:7681',
|
|
ws: true
|
|
}]
|
|
},
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
template: 'index.html'
|
|
})
|
|
]
|
|
});
|