Answer the question
In order to leave comments, you need to log in
How to make phpStorm understand custom function in scss?
Now I'll ask another question, which will not be answered =))
A custom function was written for the gulp-sass plugin b64()
, which encodes the given image in base64 and inserts it into the resulting css.
Using the function looks like this:
background-image: b64("source/images/menu-dropdown-hover.png");
function b64(file, done) { … }
let sassOpts = { ... }
sassOpts.functions = {}
sassOpts.functions['b64($file)'] = b64;
...
.pipe(sass(sassOpts))
@function b64($file) {
// а эта объявлена в js и делает всю обработку.
// Здесь она также не резолвится, ну да ладно.
@return _b64($file);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question