Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wrong behavior on empty css file #22

@asafyish

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.

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