A
A
Andrew2018-09-17 22:09:51
css
Andrew, 2018-09-17 22:09:51

Setting up an OptimizedHTML starter template?

Guys who worked with the starter template OptimizedHTML-4-master
The essence of the question, it works either on sass or on scss
How to set it up for regular css what to install what to write in gulp
If there is any kind of miniguide I will be very grateful

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2018-09-18
@profesor08

This starter template is not very good. It is designed strictly for one configuration, and in order to change something, you need to thoroughly rework the code. In your case, you need to add wiretapping for cssfiles.
In gulpfile.jsyou will find, in several places, a line 'app/'+syntax+'/**/*.'+syntax+'', it must be replaced with an array, if I'm not mistaken, it should work, because this is the expected functionality, and if not, then everything is bad.

[
  "app/**/*.css",
  "app/**/*.scss",
  "app/**/*.sass",
]

Thus, it should, by design, respond to all changes to these types of files.
And if everything is bad, then create files with an extension .scssand write regular csscode in them, well, existing *.cssfiles, you need to rename them to *.scssand include them in the main one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question