Answer the question
In order to leave comments, you need to log in
How to change file paths with variables in gulp?
How to change a variable using GulpJs?
Let's say we have the following structure:
src
----img
--------img1.png
----css
--------main.css
----index.html
and paths to index. html are written like this: <style src="css/main.css"></style>
Paths in css to the image are written like this:
body {
background-image: url(../img/img1.png);
}
<style src="user/assets/css/main.css"></style>
body {
background-image: url(user/assets/img/img1.png);
}
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