I
I
Ilya Serov2017-09-28 18:45:09
gulp.js
Ilya Serov, 2017-09-28 18:45:09

How to clear the contents of a file in gulp? And how to make sure that a new folder does not appear when compiling SASS?

Hello everyone, I've run into a few problems. I collect a new assembly in GULP and this is the point:
1) I use concat-css to connect all CSS files in style.css, but I noticed that concat-css connects everything without deleting what was, and gulp-clean deletes the file , after which concat-css gives an error like there is no such file, where to connect your CSS? Is it possible somehow to clear only the content of style.css so that later I can just put the necessary code there?
2) I compile SCSS to CSS, but it creates an unnecessary folder in the css folder, i.e. I specified asssets/app/css and I get assets/app/css/sass/ the desired file . How to remove this subfolder and compile the code exactly to CSS
Screenshots of the necessary tasks, thanks in advance.
59cd178be1cdc541999775.png59cd17b14b3ab618917042.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
deniskins23, 2017-09-28
@JavaIlya

вот тебе ответ-)59cd1d3a1fea6651491689.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question