Skip to content
프로젝트

wdmcourses/optimizedhtml-start-template

GitHub에서 보기

소개

OptimizedHTML은 Google PageSpeed에 최적화된, 필요한 구성을 모두 갖춘 HTML5 시작 템플릿입니다. Bootstrap(그리드만), Gulp, Sass, Browsersync, Autoprefixer, PostCSS, Uglify, gulp-imagemin, Vinyl-FTP(+Rsync), Bower(라이브러리 경로)를 지원합니다. 템플릿에는 웹 서버용 캐싱 규칙이 포함된 .htaccess 파일이 들어 있습니다.

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

OptimizedHTML - Start HTML Template

Start HTML Template

Author: WebDesign Master | Manual

OptimizedHTML is all-inclusive, optimized for Google PageSpeed start HTML5 template with Bootstrap (grid only), Gulp, Sass, Browsersync, Autoprefixer, PostCSS, Uglify, gulp-imagemin, Vinyl-FTP, rsync and Bower (libs path) support. The template contains a .htaccess file with caching rules for web server.

OptimizedHTML Start Template uses the best practices of web development and optimized for Google PageSpeed.

The template uses a Sass with Sass syntax and project structure with source code in the directory app/ and production folder dist/, that contains ready project with optimized HTML, CSS, JS and images.

How to use OptimizedHTML

  1. Download optimizedhtml-start-template from GitHub
  2. Install WSL (for Windows): https://webdesign-master.ru/blog/tools/wsl-nodejs-new.html
  3. Install Node Modules in project folder: npm i
  4. Run the template: gulp

Gulp tasks:

  • gulp: run default gulp task (sass, js, watch, browserSync) for web development;
  • build: build project to dist folder (cleanup, image optimize, removing unnecessary files);
  • deploy: project deployment on the server from dist folder via FTP;
  • rsync: project deployment on the server from dist folder via RSYNC;
  • clearcache: clear all gulp cache.

Rules for working with the starting HTML template

  1. All HTML files should have similar initial content as in app/index.html;
  2. For installing new JS library, just run the command "bower i plugin-name" in the terminal. Libraries are automatically placed in the folder app/libs. Bower must be installed in the system (npm i -g bower). Then place all JS libraries paths in the js() task (gulpfile.js);
  3. All custom JS located in app/js/common.js;
  4. All Sass vars placed in app/sass/_vars.sass;
  5. All Fonts placed in app/sass/_fonts.sass with "_mixins/font-face" mixin
  6. All Bootstrap media queries placed in app/sass/_media.sass;
  7. All JS libraries CSS styles placed in app/sass/_libs.sass;

관련 프로젝트 살펴보기

불러오는 중…