Skip to content

Generated an empty chunk #106

Open
Open

Description

@martindybal

I'm trying to use the plugin, but I getting info message:

bundles ./Controls/Navigation/navigation.scss → wwwroot/Controls/Navigation/navigation.css...
(!) Generated an empty chunk

It will generate an empty navigation.css file.

rollup.config.js

[
    scss({
        outputStyle: minify ? 'compressed' : 'expanded',
        sourceMap: !minify,
    }),
]

navigation.scss

nav {
    background-color: var(--color-primary);
}

If I add processor. It write correct css to console.

        processor: (css, map) => {
            console.log(map);
            console.log(css);
            return {};
        }

So question is why is generated file empty?

image

Activity

  1. thgh commented on Feb 6, 2023

    @thgh
    Owner

    Probably the return {};, it should be return { css };

  2. martindybal commented on Feb 6, 2023

    @martindybal
    Author

    I don't use that process. I used it only for test.

    My whole config:

    [
        scss({
            outputStyle: minify ? 'compressed' : 'expanded',
            sourceMap: !minify,
        }),
    ]
    
  3. xaviemirmon commented on May 10, 2023

    @xaviemirmon

    I am also running into this issue. @martindybal did you find a way to fix it?

  4. martindybal commented on May 18, 2023

    @martindybal
    Author

    @xaviemirmon No, I didn't use this plugin. I used Sass directly.

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