Commit 079b9797 authored by Salley Liu's avatar Salley Liu
Browse files

fix not find encodebase64 function error

1 merge request!12112[LEOP-317]Fix not find encodebase64 function error
Showing with 7 additions and 5 deletions
+7 -5
......@@ -3,10 +3,12 @@ const sass = require('node-sass');
module.exports = {
sassOptions: {
'encodebase64($string)': str => {
const buffer = Buffer.from(str.getValue());
return sass.types.String(buffer.toString('base64'));
functions: {
'encodebase64($string)': str => {
const buffer = Buffer.from(str.getValue());
return sass.types.String(buffer.toString('base64'));
}
}
}
};
\ No newline at end of file
......@@ -196,7 +196,7 @@ module.exports = function (webpackEnv) {
{
loader: require.resolve(preProcessor),
options: {
...preProcessorOptions,
...preProcessorOptions, // #backpack-addons sassFunctions
...{
sourceMap: true,
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment