I just started learning gulp here I had written the task and run after run the task nothing is changed in my CSS file vendor prefixes are not added. I'm trying to add vendor prefixes and compress my CSS files. Can anyone suggest me. Is there my directory path is correct what I'm doing wrong here? why it is not working. And I used the latest version 4.0.1
Gulp task is not working and even not shows any error
108 Views Asked by Husna At
1
First argument of
gulp.src()
have to be glob pointing to file/files.So first argument of src() should look like:
./assets/css/app.css
(to match specific file)./assets/css/*.css
(to match all files with ext .css in directory)./assets/css/**/*.css
(to match all files with ext .css indirectory with subdirectorys)
./assets/css/**/*
(to match all files)Also it is not good idea to use same input and output directory. Because after first run of task your source file will be ruined.
Maybe better idea is to use structure similar to that: