0.0.1 • Published 8 years ago
webfont-plugin-webpack v0.0.1
TO DO.
An Example:
const WebfontPlugin = require('webfont-plugin-webpack');
new WebfontPlugin({
src: [
{
font: './src/asset/webfont/Myfont.ttf',// path of font file. required.
text: '你好',// text string. optional.
family: 'webfont'// `font-family`. optinal. Font file's name is used by default.
},
{
font: './src/asset/webfont/somefont.ttf',// path of font file. required.
textFile: './src/asset/webfont/somefont.txt'// path of text file. optional.
}
],
dest: './src/font/[family].[type]',// path of generated font files. required.
watch: {
pattern: 'src/asset/webfont/**/*.{ttf,txt}',// watch these files to reload. required.
cwd: undefined// current working dir for watching. optional.
}
})
0.0.1
8 years ago