R
R
roma Roman2021-04-13 12:00:01
gulp.js
roma Roman, 2021-04-13 12:00:01

When converting in the console, the following error occurs PS D:\programming\GULP-start> gulp styles [11:48:46] Using gulpfile D:\programming\GULP-?

gulpfile.js:

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


main.scss:
.testr{
    text-align: center;
    &__box{
        margin: 0;
    }
}

package.json:
{
  "name": "gulp-start",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "gulp": "^4.0.2",
    "gulp-sass": "^4.1.0"
  }
}

60755d735dbc9361844232.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
roma Roman, 2021-04-13
@romario12

That's it, I just mixed up the name of the scss file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question