Skip to content

Commit

Permalink
fix: fix the plugin can't be load because of logseq/logseq#10117
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgafn committed Sep 13, 2023
1 parent dfcdcca commit c216db3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>logseq-block-spacer</title>
</head>

<body></body>
</html>
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A plugin for Logseq to keep first child block and last child block empty and insert block between two blocks by click mouse.",
"author": "gfgafn",
"license": "MIT",
"main": "dist/main.js",
"main": "dist/index.html",
"scripts": {
"dev": "concurrently \"pnpm run res:dev\" \"pnpm rspack build --watch --node-env=development\" --color --prefix-colors red.bold,yellow.bold --names \"res:dev,rspack:dev\" --kill-others",
"build": "npx rescript build && pnpm rspack build",
Expand Down Expand Up @@ -33,4 +33,4 @@
"title": "Block Spacer",
"id": "logseq-block-spacer"
}
}
}
9 changes: 8 additions & 1 deletion rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ const config = {
entry: {
main: './src/Index.bs.js',
},
builtins: {
html: [
{
template: 'index.html',
},
],
},
mode: isProduction ? 'production' : 'development',
output: {
filename: 'main.js',
filename: '[name]-[contenthash].js',
path: path.resolve(__dirname, 'dist'),
clean: true,
},
Expand Down

0 comments on commit c216db3

Please sign in to comment.