Skip to content

使用自定义模板template路径问题 #12

@Lencamo

Description

@Lencamo

问题1

// .vuepress/config.js
module.exports = {
  plugins: [
    [
      'posts-encrypt',
      {
        // Here!!!
       // 这样就可以
        template: __dirname + '\\posts-encrypt\\template.html',

        // 这样写找不到路径
        // template: '/docs/.vuepress/posts-encrypt/template.html',
        // template: './posts-encrypt/template.html',
        injectConfig: {
          less: '',
          iview: true,
          animate: true
        }
         ...
      }
    ]
}

问题2

  使用自定义模板时,vue无法正常使用(即使模板内容和默认模板内容一致)。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions