Open alextrastero opened 8 years ago
I'm trying again after npm i gulp-sass
nope, still nothing, something to do with node-sass
@alextrastero - this ticket is a good motivator for me to deprecate sass and just jump over to a proper postcss build.
@mrmrs and webpack? :trollface:
I am very bad at webpack but if you want to make a PR I would gladly accept.
@alextrastero try editing your package file to use the latest browser-sync, gulp, and gulp-sass.
"devDependencies": {
"browser-sync": "^2.11.2",
"gulp": "~3.9.1",
"gulp-autoprefixer": "0.0.5",
"gulp-csslint": "~0.1.3",
"gulp-imagemin": "~0.1.4",
"gulp-jekyll": "0.0.0",
"gulp-minify-css": "~0.3.5",
"gulp-rename": "^1.2.0",
"gulp-rimraf": "^0.1.0",
"gulp-sass": "~2.2.0",
"gulp-shell": "^0.2.11",
"gulp-size": "^0.4.0",
"gulp-svgmin": "~0.4.1",
"gulp-util": "~2.2.12",
"gulp-watch": "^0.6.8",
"imagemin-pngcrush": "^1.0.0",
"jshint-stylish": "~0.1.5"
},
"devDependencies": {
"browser-sync": "*",
"gulp": "*",
"gulp-autoprefixer": "*",
"gulp-csslint": "*",
"gulp-imagemin": "*",
"gulp-jekyll": "*",
"gulp-minify-css": "*",
"gulp-rename": "*",
"gulp-rimraf": "*",
"gulp-sass": "*",
"gulp-shell": "*",
"gulp-size": "*",
"gulp-svgmin": "*",
"gulp-util": "*",
"gulp-watch": "*",
"imagemin-pngcrush": "*",
"jshint-stylish": "*"
}
npm update --save-dev
Seemed to have fixed that :)
Now npm start
throws
> gulp
[17:09:18] Using gulpfile ~/dev/alextrastero.github.io/gulpfile.js
[17:09:18] Starting 'pre-process'...
[17:09:18] 'pre-process' errored after 8.36 ms
[17:09:18] Error in plugin 'gulp-watch'
Message:
glob should be String or Array, not function
I left gulp-watch versioning in place and don't get any errors, but live reload is not working at all.
It seems the browser-sync doesn't work. I have the same issues as you @chriswhawkins
There seems to be an issue on fresh install