ruvick-template-gulp
v1.0.0
Published
Starter template for vertski with gulp builder
Downloads
5
Readme
Стартовый шаблон для вертски на чистом java script.
Для скачивания
ВНИМАНИЕ! Не используйте кириллицу в названии папок и файлов!
Установка и работа с шаблоном (с правами администратора!): В терминале:
- npm i
- gulp Шаблон начнет работать в режиме разработчика, без сжатия картинок и кода.
Когда верстка закончена и пришло время грузить на сервер/отдавать заказчику: В новом окне терминала:
- gulp build Выполнится оптимизация кода и картинок. После завершения действий галпом, папка с результатом готова к выгрузке на сервер/передаче заказчику
Внимание! После выполнения gulp build создаются webp файлы картинок. Также они интегрируются в html и css. Следовательно, стоит проверить все ли корректно отображается и работает. Если после выполнения gulp build файлы редактировались, действие (gulp build) нужно повторить.
Возможные проблемы и их решения:
Ошибка node-sass. Решения: npm rebuild node-sass и/или npm install sass gulp-sass --save-dev
Ошибка Pyton Решени: npm install --global windows-build-tools
Ошибка imagemin. Варианты решения :
- папки и файлы должны быть названы латиницей без пробелов
- тег img и его содержимое должны быть записаны в одну строку без переносов
- в атрибуте src должен быть указан путь к существующей картинке