-
我正在尝试开发一款主题 Yue-plus / vuepress-theme-oxygen-not-included 我依照 指南 - 快速上手 创建了一个VuePress 项目。
{
"name": "vuepress-theme-oxygen-not-included-demo",
"version": "0.0.0",
"description": "《缺氧》游戏风格主题,开发中……",
"repository": {
"type": "git",
"url": "git+https://github.com/Yue-plus/vuepress-theme-oxygen-not-included.git"
},
"author": "Yue-plus <Yue_plus@foxmail.com>",
"license": "MIT",
"private": true,
"scripts": {
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
},
"workspaces": [
"packages/vuepress-theme-oxygen-not-included"
],
"devDependencies": {
"vuepress": "^2.0.0-beta.23"
}
} 然后创建了一个
{
"name": "vuepress-theme-oxygen-not-included",
"version": "0.0.0",
"description": "《缺氧》游戏风格主题,开发中……",
"main": "index.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/Yue-plus/vuepress-theme-oxygen-not-included.git"
},
"author": "Yue-plus",
"license": "MIT",
"bugs": {
"url": "https://github.com/Yue-plus/vuepress-theme-oxygen-not-included/issues"
},
"homepage": "https://github.com/Yue-plus/vuepress-theme-oxygen-not-included#readme",
"devDependencies": {
"@vuepress/theme-default": "^2.0.0-beta.23",
"@vuepress/utils": "^2.0.0-beta.23",
"@vuepress/plugin-palette": "^2.0.0-beta.23"
},
"dependencies": {
"vuepress": "^2.0.0-beta.23"
}
}
const { path } = require('@vuepress/utils')
module.exports = {
name: 'vuepress-theme-oxygen-not-included',
extends: '@vuepress/theme-default',
layouts: {
Layout: path.resolve(__dirname, 'layouts/Layout.vue'),
404: path.resolve(__dirname, 'layouts/404.vue'),
},
plugins: [
[ '@vuepress/plugin-palette', { preset: 'sass' } ]
]
} 在 |
Beta Was this translation helpful? Give feedback.
Answered by
meteorlxy
Aug 7, 2021
Replies: 2 comments 2 replies
-
只是你的 ide 提示找不到,运行的时候会作为临时文件创建的 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Mister-Hope
-
顺便提一句,你可以试试 vuepress-plugin-sass-palette。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
只是你的 ide 提示找不到,运行的时候会作为临时文件创建的