Skip to content

Karma runner logs warning for public assets #465

Description

@CrisGrec

The karma.conf.js currently proxies requests as follows: '/app/': '/base/dist/app/'.

However if you put an asset such as an image in the public directory, the asset is placed into the root of the dist directory when built. The result is that karma will log a warning each time the asset is requested:

19 04 2016 23:34:57.334:WARN [web-server]: 404: /image.png

Not sure if it's a valid solution, but changing the proxy to '/': '/base/dist/' allows requests to app to behave as normal, while including requests to assets in the root of dist, eliminating the warnings.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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