提交 c1cf4b13 编写于 作者: U ULIVZ

Revert "feat: set up @vuepress/plugin-stylus"

This reverts commit 17cd87d2.
上级 93583879
......@@ -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')
......
__tests__
__mocks__
\ No newline at end of file
# @vuepress/plugin-stylus
> stylus plugin for vuepress
\ No newline at end of file
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)
})
}
})
{
"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
......@@ -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'
]
}
......@@ -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.
先完成此消息的编辑!
想要评论请 注册