Skip to content

Asset URL Handling: @ alias not working when not in css module mode. #1797

@ghost

Description

Version

3.0.0-rc.3

Reproduction link

https://github.com/andreynazarov3/asset-url-bug

Steps to reproduce

Create a basic project with Vue CLI. Add background: url(@/assets/logo.png); to App.vue to styles.

What is expected?

Explected to resolve relative path to image with webpack.

What is actually happening?

Error: Module not found: Error: Can't resolve './@/assets/logo.png' in 'C:\Users\me\Desktop\asset-url-bug\src'


Strange that it is working when use module mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions