mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Add a preview.html to the online code editor that only does the preview withtout the code editors
This commit is contained in:
parent
a8475d062c
commit
b155dbe601
3 changed files with 108 additions and 2 deletions
|
@ -6,7 +6,8 @@ const dist = path.resolve(__dirname, "dist");
|
|||
|
||||
module.exports = {
|
||||
entry: {
|
||||
app: './index.ts',
|
||||
main: './index.ts',
|
||||
preview: './preview.ts',
|
||||
'editor.worker': 'monaco-editor/esm/vs/editor/editor.worker.js',
|
||||
'json.worker': 'monaco-editor/esm/vs/language/json/json.worker',
|
||||
'css.worker': 'monaco-editor/esm/vs/language/css/css.worker',
|
||||
|
@ -41,7 +42,14 @@ module.exports = {
|
|||
plugins: [
|
||||
new HtmlWebPackPlugin({
|
||||
title: 'SixtyFPS Online Editor',
|
||||
template: 'index.html'
|
||||
template: 'index.html',
|
||||
chunks: ['main']
|
||||
}),
|
||||
new HtmlWebPackPlugin({
|
||||
title: 'SixtyFPS Preview',
|
||||
template: 'preview.html',
|
||||
filename: 'preview.html',
|
||||
chunks: ['preview']
|
||||
}),
|
||||
new WasmPackPlugin({
|
||||
crateDirectory: path.resolve(__dirname, "../../api/sixtyfps-wasm-interpreter/"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue