Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
计算机应用开发
前端
Vuepress
提交
c1cf4b13
V
Vuepress
项目概览
计算机应用开发
/
前端
/
Vuepress
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
Vuepress
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c1cf4b13
编写于
8月 22, 2018
作者:
U
ULIVZ
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "feat: set up @vuepress/plugin-stylus"
This reverts commit
17cd87d2
.
上级
93583879
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
15 addition
and
62 deletion
+15
-62
packages/@vuepress/core/lib/webpack/createBaseConfig.js
packages/@vuepress/core/lib/webpack/createBaseConfig.js
+12
-0
packages/@vuepress/plugin-stylus/.npmignore
packages/@vuepress/plugin-stylus/.npmignore
+0
-2
packages/@vuepress/plugin-stylus/README.md
packages/@vuepress/plugin-stylus/README.md
+0
-3
packages/@vuepress/plugin-stylus/index.js
packages/@vuepress/plugin-stylus/index.js
+0
-21
packages/@vuepress/plugin-stylus/package.json
packages/@vuepress/plugin-stylus/package.json
+0
-33
packages/@vuepress/theme-default/index.js
packages/@vuepress/theme-default/index.js
+1
-2
packages/@vuepress/theme-default/package.json
packages/@vuepress/theme-default/package.json
+2
-1
未找到文件。
packages/@vuepress/core/lib/webpack/createBaseConfig.js
浏览文件 @
c1cf4b13
...
...
@@ -236,6 +236,18 @@ module.exports = function createBaseConfig ({
loader
:
'
less-loader
'
,
options
:
siteConfig
.
less
})
createCSSRule
({
config
,
isProd
,
isServer
,
postcssOptions
,
lang
:
'
stylus
'
,
test
:
/
\.
styl
(
us
)?
$/
,
loader
:
'
stylus-loader
'
,
options
:
Object
.
assign
({
preferPathResolver
:
'
webpack
'
},
siteConfig
.
stylus
)
})
config
.
plugin
(
'
vue-loader
'
)
...
...
packages/@vuepress/plugin-stylus/.npmignore
已删除
100644 → 0
浏览文件 @
93583879
__tests__
__mocks__
\ No newline at end of file
packages/@vuepress/plugin-stylus/README.md
已删除
100644 → 0
浏览文件 @
93583879
# @vuepress/plugin-stylus
> stylus plugin for vuepress
\ No newline at end of file
packages/@vuepress/plugin-stylus/index.js
已删除
100644 → 0
浏览文件 @
93583879
const
{
env
:
{
isProduction
}}
=
require
(
'
@vuepress/shared-utils
'
)
const
{
webpack
:
{
createCSSRule
}}
=
require
(
'
@vuepress/shared-utils
'
)
module
.
exports
=
(
options
,
context
)
=>
({
chainWebpack
(
config
,
isServer
)
{
const
isProd
=
isProduction
()
const
{
postcss
,
stylus
}
=
context
.
siteConfig
createCSSRule
({
config
,
isProd
,
isServer
,
postcss
,
lang
:
'
stylus
'
,
test
:
/
\.
styl
(
us
)?
$/
,
loader
:
'
stylus-loader
'
,
options
:
Object
.
assign
({
preferPathResolver
:
'
webpack
'
},
stylus
)
})
}
})
packages/@vuepress/plugin-stylus/package.json
已删除
100644 → 0
浏览文件 @
93583879
{
"name"
:
"@vuepress/plugin-stylus"
,
"version"
:
"1.0.0"
,
"description"
:
"stylus plugin for vuepress"
,
"main"
:
"index.js"
,
"publishConfig"
:
{
"access"
:
"public"
},
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git+https://github.com/vuejs/vuepress.git"
},
"keywords"
:
[
"documentation"
,
"vue"
,
"vuepress"
,
"generator"
],
"dependencies"
:
{
"@vuepress/shared-utils"
:
"^1.0.0"
,
"stylus"
:
"^0.54.5"
,
"stylus-loader"
:
"^3.0.2"
,
"postcss-loader"
:
"^2.1.5"
,
"mini-css-extract-plugin"
:
"^0.4.1"
,
"autoprefixer"
:
"^8.2.0"
},
"author"
:
"Evan You"
,
"license"
:
"MIT"
,
"bugs"
:
{
"url"
:
"https://github.com/vuejs/vuepress/issues"
},
"homepage"
:
"https://github.com/vuejs/vuepress/packages/@vuepress/plugin-stylus#readme"
}
\ No newline at end of file
packages/@vuepress/theme-default/index.js
浏览文件 @
c1cf4b13
...
...
@@ -7,7 +7,6 @@ module.exports = {
notFound
:
path
.
resolve
(
__dirname
,
'
src/NotFound.vue
'
),
plugins
:
[
themePlugin
,
'
@vuepress/active-header-links
'
,
'
@vuepress/stylus
'
'
@vuepress/active-header-links
'
]
}
packages/@vuepress/theme-default/package.json
浏览文件 @
c1cf4b13
...
...
@@ -26,6 +26,7 @@
"@vuepress/plugin-active-header-links"
:
"1.0.0"
,
"docsearch.js"
:
"^2.5.2"
,
"nprogress"
:
"^0.2.0"
,
"@vuepress/plugin-stylus"
:
"^1.0.0"
"stylus"
:
"^0.54.5"
,
"stylus-loader"
:
"^3.0.2"
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录