A
A
Alexander Vladimirovich2017-04-05 12:49:05
gulp.js
Alexander Vladimirovich, 2017-04-05 12:49:05

How to make images from the url next to the resulting file when building SCSS?

For example, the original style
src.scss
.test {
background: url('some/some/path/to/image/file.jpg');
} build.css
result .test { background: url('md5_from_file_content.jpg'); } and there should be a file next to it: md5_from_file_content.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2017-04-05
@werty1001

Read CSS, process urls and form an array for file copy task. You can see an example of this here (without md5, but it's easy to fasten).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question