1
這是我Gulpfile:Gulp.js不會重新加載普通CSS
var gulp = require('gulp'),
watch = require('gulp-watch'),
livereload = require('gulp-livereload');
gulp.task('watch', function() {
livereload.listen();
gulp.watch('./css/**/*.css', ['css']).on('change', livereload.changed);
gulp.watch('./js/**/*.js', ['js']).on('change', livereload.changed);
gulp.watch('./**/*.php').on('change', livereload.changed);
});
gulp.task('default', [ 'watch']);
它會再重新加載CSS,然後用此錯誤崩潰:
[15:30:13] style.css was reloaded.
[15:30:13] Task 'css' is not in your gulpfile
[15:30:13] Please check the documentation for proper gulpfile formatting
不知道做什麼這個,任何人都有類似的問題?
只是想通了歡呼堆雖然:D – 2014-11-03 03:11:32