I
I
ismuhanovv2017-08-11 19:31:58
css
ismuhanovv, 2017-08-11 19:31:58

How to use css in gulp?

How to use css in gulp?
I created a project, but I don't know how to change styles in html

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rostislav Sergeevich, 2017-08-11
@JustSneaker

If you want to learn gulp then here .
And if you need to use the sass preprocessor, then here .
In short:
To change the css code through the sass preprocessor, you need to:
1. Run gulp (Open the command line in the /node_modules/.bin folder in the project folder, then enter the command gulp).
2. Open the sass file with styles, make the necessary changes.
3 (only with task watch). Reload page.
PS: In order not to reload the page every time, I advise you to connect browser-sync (this thing automatically reloads the desired element on the page, and also knows how to create localhost with the project site, which can be accessed from all devices in the wi-fi area (if the computer connected to it locally

V
Vladimir Golosay, 2017-08-22
@golosay

Here is an article that explains how to collect styles and, if necessary, js files using gulp in examples.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question