Skip to content

Wrong behavior on empty css file #22

Description

@asafyish

Hi,

I have a working setup with cssnext-loader, but if I require an empty css file, instead of getting an empty string, I am getting a json object.

The problem is at line 30 in index.js:

if (result.css)

should be

if (typeof result.css !== 'undefined')

because result.css is empty, and that's correct, but the check assume there was an error.
If you want, I can make a PR for that.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions