Skip to content

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

@try2020-code

Description

@try2020-code

网上找了很多资料都找不到.. 我在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 是一个我没见过的的类型

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions