Commit d81d8e8a authored by Guillaume Agniéray's avatar Guillaume Agniéray Committed by Johan Cwiklinski
Browse files

Remove favicon.ico

As long as a favicon is declared in html head, favicon at root in not necessary.
parent d7fcd138
......@@ -50,8 +50,7 @@ var paths = {
],
css: './ui/css/**/*.css',
js: './ui/js/*.js',
favicon:'./ui/images/favicon.ico',
faviconpng:'./ui/images/favicon.png',
favicon:'./ui/images/favicon.png',
logo: './ui/images/galette.png',
photo:'./ui/images/default.png'
},
......@@ -102,11 +101,7 @@ var paths = {
};
function galette() {
favicon = gulp.src(paths.src.favicon)
.pipe(gulp.dest(paths.webroot))
.pipe(browserSync.stream());
faviconpng = gulp.src(paths.src.faviconpng)
faviconpng = gulp.src(paths.src.favicon)
.pipe(gulp.dest(paths.assets.theme.images))
.pipe(browserSync.stream());
......@@ -187,7 +182,7 @@ function watch() {
proxy: localServer.url
})
gulp.watch([paths.src.favicon, paths.src.faviconpng, paths.src.logo, paths.src.photo], gulp.series(galette)).on('change', browserSync.reload)
gulp.watch([paths.src.favicon, paths.src.logo, paths.src.photo], gulp.series(galette)).on('change', browserSync.reload)
gulp.watch([paths.src.theme, paths.src.config], gulp.series(theme, 'build-css')).on('change', browserSync.reload)
gulp.watch([paths.src.css], gulp.series(styles)).on('change', browserSync.reload)
gulp.watch([paths.src.js], gulp.series(scripts)).on('change', browserSync.reload)
......
......@@ -6,8 +6,9 @@
"directories": {
"lib": "lib"
},
"scripts": {
"clean": "rm -rf node_modules && rm -rf semantic && rm -rf galette/vendor && rm -rf galette/webroot/assets && rm -rf galette/webroot/themes && rm galette/webroot/favicon.ico",
"clean": "rm -rf node_modules && rm -rf semantic && rm -rf galette/vendor && rm -rf galette/webroot/assets && rm -rf galette/webroot/themes",
"install-deps": "npm run clean && cd galette && composer install -o && cd .. && npm install",
"build": "gulp",
"rebuild": "npm run install-deps && gulp",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment