Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated an empty chunk #106

Open
martindybal opened this issue Feb 3, 2023 · 4 comments
Open

Generated an empty chunk #106

martindybal opened this issue Feb 3, 2023 · 4 comments

Comments

@martindybal
Copy link

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

@thgh
Copy link
Owner

thgh commented Feb 6, 2023

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

@martindybal
Copy link
Author

martindybal commented Feb 6, 2023

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

My whole config:

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

@xaviemirmon
Copy link

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

@martindybal
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants