C
C
codymaverick2020-01-14 17:20:40
Sass
codymaverick, 2020-01-14 17:20:40

Sass-loader not reading @import 'vendor/**/*.scss'?

Build error

SassError: File to import not found or unreadable: vendor/**/*.scss.
            on line 10 of /mnt/d/webpack-setup-test/src/styles/main.scss
    >> @import 'vendor/**/*.scss';
       ^

all other imports went fine, I think it's because of the dots **, how to fix this?
style assembly code
{
                test: /\.(sa|sc|c)ss$/,
                exclude: [path.join(__dirname, "/src/modules/"), path.join(__dirname, "/src/vue/")],
                use: [
                    {
                        loader: MiniCssExtractPlugin.loader,
                        options: {
                            hmr: process.env.NODE_ENV === 'development',
                        },
                    },
                    'css-loader',
                    'sass-loader',
                    'postcss-loader',
                ],
            },

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question