sass google fonts
1.0.0
프로젝트에 Google 글꼴을 포함하십시오
npm install sass-google-fonts먼저 프로젝트를 가져와야합니다.
// Import the project
@import " node_modules/sass-google-fonts/src/GoogleFonts.scss " ;글꼴의 글꼴 이름을 입력하여 Google 글꼴을 프로젝트로 가져 오십시오.
// Include a google font
@include google-font ( ' Tintos ' );
html , body {
font-family : ' Tintos ' ;
}다음과 같이 포함하려는 무게와 언어를 지정할 수도 있습니다.
// If you want to specify sizes of the font
@include google-font ( ' Tintos ' , ' 400,400i,700 ' );
// Include languages of fonts
@include google-font ( ' Tintos ' , ' 400,400i,700 ' , ' greek,latin-ext,vietnamese ' ); # Install dependencies
npm install
# Run tests one time
npm run test
# Run test driven development
npm run tdd 기능을 추가하거나 변경하는 경우 test/ 에서 테스트를 추가하십시오.
NPM에 게시하기 전에 모든 테스트가 성공했는지 확인하십시오.
# Set the version
npm version {type} # major/minor/patch
# Publish to npm
npm publish
# Publish to github
git push && git push --tags