Files
ttyd/html/webpack.prod.js
2018-05-03 00:12:04 +08:00

17 lines
478 B
JavaScript

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(),
]
});