D
D
Daria Farbak2021-07-11 13:43:52
gulp.js
Daria Farbak, 2021-07-11 13:43:52

How to fix error in gulp?

Hello, I'm trying to convert changes from style.css to style.scss gives an error: Error: EEXIST: file already exists, mkdir changes are not saved, please tell me how to fix it? (beginner)
versions: "gulp": "4.0", node.js v13.14.0

const { src, dest } = require("gulp");

const scss = require("gulp-sass");
function styles() {
    return src("app/scss/style.scss")
    .pipe(scss())
    .pipe(dest("app/css/style.css"))
}
exports.styles = styles;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-07-11
@FDAsha

function styles() {
  return src("app/scss/style.scss")
    .pipe(scss())
    .pipe(dest("app/css"))
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question