Skip to content

css in the picture packing problem #81

@shaodahong

Description

@shaodahong

node -v
v7.10.0

npm -v
4.2.0

webpack -v
2.5.0

I set up a div tag in app.html, give it a class box, and then I set this box background: url ('../ public / img / logo.png') no-repeat;

then i run npm run build, Find the image packed in the root directory

Have you tried it?
image

I hope that the picture resources can be unified in the img directory or a unified directory, because when I css too much in the picture when this is not well managed!

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