Skip to content

Commit

Permalink
fix(plugin_kit): import source path case error on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqcode committed Sep 2, 2024
1 parent 69ea7de commit cf6e687
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"program": "${workspaceFolder}/bin/artalk",
"preLaunchTask": "Build for debugging",
"env": {
"ATK_TRUSTED_DOMAINS": "http://localhost:5173 http://localhost:23367"
"ATK_SITE_DEFAULT": "ArtalkDocs",
"ATK_TRUSTED_DOMAINS": "http://localhost:5173 http://localhost:23367",
},
"args": ["server", "-c", "${workspaceFolder}/artalk.yml"]
}
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ build-debug:
$(PKG_NAME)

dev: build-debug
ATK_SITE_DEFAULT="ArtalkDocs" \
ATK_TRUSTED_DOMAINS="http://localhost:5173 http://localhost:23367" \
$(BIN_NAME) $(ARGS)

Expand Down
2 changes: 1 addition & 1 deletion ui/plugin-kit/src/plugin/dev-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function getInjectHTMLTags(entrySrc: string): HtmlTagDescriptor[] {
attrs: { type: 'module' },
children: `
import Artalk from '/node_modules/artalk'
import '/node_modules/artalk/dist/artalk.css'
import '/node_modules/artalk/dist/Artalk.css'
window.Artalk = Artalk
`,
injectTo: 'head',
Expand Down

0 comments on commit cf6e687

Please sign in to comment.