mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-21 19:34:19 +01:00
html: add development server
This commit is contained in:
16
html/webpack.prod.js
Normal file
16
html/webpack.prod.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const merge = require('webpack-merge');
|
||||
const config = require('./webpack.config.js');
|
||||
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
|
||||
|
||||
module.exports = merge(config, {
|
||||
mode: 'production',
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
inlineSource: '.(js|css)$',
|
||||
template: 'index.html'
|
||||
}),
|
||||
new HtmlWebpackInlineSourcePlugin()
|
||||
]
|
||||
});
|
||||
Reference in New Issue
Block a user