Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
079b9797
Commit
079b9797
authored
3 years ago
by
Salley Liu
Browse files
Options
Download
Email Patches
Plain Diff
fix not find encodebase64 function error
parent
6aa03fa3
github/fork/Skyscanner/leop-317-sassfunction
1 merge request
!12112
[LEOP-317]Fix not find encodebase64 function error
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/react-scripts/backpack-addons/sassFunctions.js
+6
-4
packages/react-scripts/backpack-addons/sassFunctions.js
packages/react-scripts/config/webpack.config.js
+1
-1
packages/react-scripts/config/webpack.config.js
with
7 additions
and
5 deletions
+7
-5
packages/react-scripts/backpack-addons/sassFunctions.js
+
6
-
4
View file @
079b9797
...
...
@@ -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
This diff is collapsed.
Click to expand it.
packages/react-scripts/config/webpack.config.js
+
1
-
1
View file @
079b9797
...
...
@@ -196,7 +196,7 @@ module.exports = function (webpackEnv) {
{
loader
:
require
.
resolve
(
preProcessor
),
options
:
{
...
preProcessorOptions
,
...
preProcessorOptions
,
// #backpack-addons sassFunctions
...{
sourceMap
:
true
,
},
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets