P
P
posters2019-07-22 10:45:22
gulp.js
posters, 2019-07-22 10:45:22

How to properly write exceptions in gulp?

gulp 4
Trying to exclude my.scss and variables.scss' files, but it gives a syntax error.

var path = {
    build: {
        html: 'assets/build/',
        js: 'assets/build/js/',
        css: 'assets/build/css/',
        img: 'assets/build/img/',
        fonts: 'assets/build/fonts/'
    },
    src: {
        html: 'assets/src/*.html',
        js: 'assets/src/js/main.js',
        style: 'assets/src/style/*.scss', '!assets/src/style/my.scss', '!assets/src/style/variables.scss',
        img: 'assets/src/img/**/*.*',
        fonts: 'assets/src/fonts/**/*.*'
    },
    watch: {
        html: 'assets/src/**/*.html',
        js: 'assets/src/js/**/*.js',
        css: 'assets/src/style/**/*.scss',
        img: 'assets/src/img/**/*.*',
        fonts: 'assets/srs/fonts/**/*.*'
    },
    clean: './assets/build/*'
};

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2019-07-22
@posters

style: ['assets/src/style/*.scss', '!assets/src/style/my.scss', '!assets/src/style/variables.scss'],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question