Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

插件中的hooks如何使用哪?直接放到module.exports= {} 报错哈^_^ #1931

Open
linxian1998 opened this issue Jun 26, 2022 · 3 comments
Labels
question Further information is requested

Comments

@linxian1998
Copy link

示例代码
module.exports = {
onAppConfig({ config }) {
config.window = {
...config.window,
defaultTitle: "Hello",
}
return config;
}
};

其他信息

image

@linxian1998 linxian1998 added the question Further information is requested label Jun 26, 2022
@watsonhaw5566
Copy link
Contributor

你需要的操作是?

@linxian1998
Copy link
Author

您好!我在学习这个框架,不知道这些hooks 写到哪个文件,怎么写,希望可以给一个例子,谢谢啦!

@watsonhaw5566
Copy link
Contributor

您好!我在学习这个框架,不知道这些hooks 写到哪个文件,怎么写,希望可以给一个例子,谢谢啦!

remax.config.js 这个文件主要是放一下 webpack-chain 的配置的。建议您可以先看看 案例里面的 demo 入手。
https://github.com/remaxjs/examples

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants