Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Glob for Radix

Step 1: Add import-glob-loader:

$ npm i import-glob-loader -D

Step 3: Update webpack config:

/*
 |--------------------------------------------------------------------------
 | Configuration
 |--------------------------------------------------------------------------
 */
mix
  .setPublicPath('assets')
  .disableNotifications()
  .options({
    processCssUrls: false
  })
  .webpackConfig({
    module: {
      rules: [
        {
          test: /\.scss/,
          loader: 'import-glob-loader'
        }
      ]
    }
  });

Step 3: Update src/sass/SUBTHEME.style.scss:

@import "layout/**/*.scss";
@import "block/**/*.scss";
@import "content/**/*.scss";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment