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