added demo iframe page

This commit is contained in:
Eugene Pankov
2022-05-14 23:59:06 -07:00
parent 953580a943
commit 3cb20b9300
6 changed files with 122 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ module.exports = {
entry: {
index: path.resolve(__dirname, 'src/index.ts'),
terminal: path.resolve(__dirname, 'src/terminal.ts'),
demo: path.resolve(__dirname, 'src/demo.ts'),
},
plugins: [
...baseConfig.plugins,
@@ -39,7 +40,13 @@ module.exports = {
chunks: ['terminal'],
...htmlPluginOptions,
}),
],
new HtmlWebpackPlugin({
template: './src/demo.html',
filename: 'demo.html',
chunks: ['demo'],
...htmlPluginOptions,
}),
],
output: {
path: outputPath,
pathinfo: true,