Skip to content
New issue

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

怎样配置 alias 我需要配置@指向src #135

Open
try2020-code opened this issue Oct 23, 2023 · 0 comments
Open

怎样配置 alias 我需要配置@指向src #135

try2020-code opened this issue Oct 23, 2023 · 0 comments

Comments

@try2020-code
Copy link

网上找了很多资料都找不到.. 我在build.plugin.js 中 各种式
module.exports = ({ onGetWebpackConfig }) => {
onGetWebpackConfig((config) => {
console.log(config.resolve.alias.parent.alias, '-------aaaaa---------------')
config.resolve.alias['@'] = path.resolve(__dirname, 'src') 都无效

发现 config.resolve.alias.parent.alias 是一个我没见过的的类型

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant