pagic icon indicating copy to clipboard operation
pagic copied to clipboard

使用第三方主题生成的js文件内容为404

Open Suzichen opened this issue 3 years ago • 0 comments

Describe the bug 我把仓库clone到本地进行开发时发现了这个问题, 然后把theme换成线上的'https://deno.land/x/[email protected]/src/themes/blog/mod.ts', 依然存在这个问题,即生成的dist/xxx.js内容为:

404;
Not;
Found;

如果theme正常使用'blog'则不会出现这个问题

To Reproduce 修改配置文件

export default {
  // ...other config
  // theme: 'blog',
  theme: 'https://deno.land/x/[email protected]/src/themes/blog/mod.ts',
  // ...other config
}

生成网站

pagic build --watch --serve

Expected behavior 生成正常的有代码的js文件

Screenshots image 左边为 theme: 'blog' 生成,右边为 theme: 'https://deno.land/x/[email protected]/src/themes/blog/mod.ts', 生成

Context

  • Pagic version: 1.3.1
  • Deno version: 1.10.1 (release, aarch64-apple-darwin)
  • Browser version (optional):
  • OS version: macOS 11.2(m1)

Suzichen avatar May 19 '21 03:05 Suzichen