Skip to content

Path of extracted css file #110

Closed
Closed
@Rincewind3d

Description

@Rincewind3d

Hey,

is it possible to get the path of an imported CSS/SCSS file with mini-css-extract-plugin?

const path = await import(’src/design.scss’);
 //path should be something like /app/3.style.ba3f5c22e233291aa0aa.css

I tried it with

            test: /\.scss$/,
            use: [
                 {
                    loader: 'file-loader'
                },
                MiniCssExtractPlugin.loader,
                {
                    loader: 'css-loader',
                }, {
                    loader: 'resolve-url-loader'
                }, {
                    loader: 'sass-loader'
                }]

But file-loader just returns the SASS file and not the extracted CSS File.

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