Skip to content

Commit

Permalink
fix: add activate engine name (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
jairo-bc authored Jan 12, 2022
1 parent 3bc54b2 commit eb41787
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/plugins/theme-assets/theme-assets.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const internals = {
options: {},
};

const SASS_ENGINE_NAME = 'node-sass-fork';

function register(server, options) {
internals.options = _.defaultsDeep(options, internals.options);

Expand Down Expand Up @@ -85,6 +87,7 @@ internals.cssHandler = async (request, h) => {
},
};
const stencilStyles = new StencilStyles(console);
stencilStyles.activateEngine(SASS_ENGINE_NAME);

try {
const css = await stencilStyles.compileCss('scss', params);
Expand Down

0 comments on commit eb41787

Please sign in to comment.