MohamedLamineAllal / laravel-mix-glob

Laravel mix extension that add glob support.
MIT License
20 stars 6 forks source link

Question: import whole folder inside file #62

Closed bhofstaetter closed 1 year ago

bhofstaetter commented 1 year ago

Hello, thank you for this cool plugin. Is it possible to enable the import of all files inside a folder?

For example to import all scss files into one main file?

main.scss

@import "components/**/*";
bhofstaetter commented 1 year ago

to answer my own question. this has nothing to do with this plugin. you just need to configure webpack

mix
    .webpackConfig({
        module: {
            rules: [
                {
                    test: /\.scss/,
                    loader: 'import-glob-loader'
                }
            ]
        }
    });