mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-21 19:34:19 +01:00
html: add .editorconfig
This commit is contained in:
@@ -6,27 +6,27 @@ const config = require('./webpack.config.js');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
|
||||
module.exports = merge(config, {
|
||||
devtool: 'source-map',
|
||||
mode: 'development',
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
template: 'index.html'
|
||||
})
|
||||
],
|
||||
serve: {
|
||||
content: __dirname + '/dist',
|
||||
add: (app, middleware, options) => {
|
||||
var ttydProxy = proxy(
|
||||
[
|
||||
'/ws',
|
||||
'/auth_token.js'
|
||||
],
|
||||
{
|
||||
target: 'http://127.0.0.1:7681',
|
||||
ws: true
|
||||
}
|
||||
);
|
||||
app.use(convert(ttydProxy));
|
||||
}
|
||||
devtool: 'source-map',
|
||||
mode: 'development',
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
template: 'index.html'
|
||||
})
|
||||
],
|
||||
serve: {
|
||||
content: __dirname + '/dist',
|
||||
add: (app, middleware, options) => {
|
||||
var ttydProxy = proxy(
|
||||
[
|
||||
'/ws',
|
||||
'/auth_token.js',
|
||||
],
|
||||
{
|
||||
target: 'http://127.0.0.1:7681',
|
||||
ws: true,
|
||||
}
|
||||
);
|
||||
app.use(convert(ttydProxy));
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user