1 Star 1 Fork 0

hzsrc/webpack-iconfont-plugin-nodejs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
iconfont-options.js 587 Bytes
一键复制 编辑 原始数据 按行查看 历史
hzsrc 提交于 2022-04-27 21:18 +08:00 . test code
var path = require('path');
var dir = path.join(__dirname, 'web_project');
module.exports = {
fontName: 'my-app-icon',
template: 'css',
//htmlTemplate: path.join(dir, 'src/html.njk'),
svgs: path.join(dir, 'src/svgs/*.svg'),
fontsOutput: path.join(dir, 'src/fonts/'),
cssOutput: path.join(dir, 'src/fonts/font.css'),
jsOutput: path.join(dir, 'src/fonts/fonts.js'),
namesOutput: path.join(dir, 'src/fonts/names.txt'),
htmlOutput: path.join(dir, 'src/fonts/font-preview.html'),
//formats: ['ttf', 'woff2', 'woff', 'svg'],
cssPrefix: 'my-icon'
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/hzsrc/webpack-iconfont-plugin-nodejs.git
git@gitee.com:hzsrc/webpack-iconfont-plugin-nodejs.git
hzsrc
webpack-iconfont-plugin-nodejs
webpack-iconfont-plugin-nodejs
master

搜索帮助