The @roots/bud-sass
loader registration now runs directly after the user config is processed.
You can use the same function as before, but just call it within a build.before
callback:
/**
* Use the build.before action to
* ensure that sass is available
*/
app.hooks.action("build.before", async (app) => {
/**
* Override sass-loader options
*/
app.build.items.sass.mergeOptions({
additionalData: `@import "@styles/common/variables";`,
});
});
Sorry about that, I should have communicated this change in the release notes. This change makes it easier to use this extension in only one compiler, if you are running multiple compilers.