We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe your problems in as much detail as possible
我尝试使用在项目里自定义middleware,参考文档如下:
middleware
执行 dn run demo,控制台将会执次打印 1 2 3,每个中间件的配置选项有两个「保留的名称」 name: 用于指定中间件 package 名称,可以是完整的名称 dn-middleware-xxx 也可以是省略前缀的 xxx location: 用于指定中间件入口文件的位置,一般用于本地调试,或内置在模板中不想独立发布的中间件
于是我写出如下配置
demo: - location: ./middleware/webpack-ssr
执行后提示报错
[18:43:34] Invalid pipeline config
后来我尝试将location改成name
location
name
demo: - name: ./middleware/webpack-ssr
随后便可以了
这里的文档描述可以再详细一点,具体讲解下自定义middleware的过程 :)
The text was updated successfully, but these errors were encountered:
稍候完善
Sorry, something went wrong.
No branches or pull requests
问题
Describe your problems in as much detail as possible
我尝试使用在项目里自定义
middleware
,参考文档如下:于是我写出如下配置
执行后提示报错
后来我尝试将
location
改成name
随后便可以了
建议
这里的文档描述可以再详细一点,具体讲解下自定义
middleware
的过程 :)The text was updated successfully, but these errors were encountered: