aui / grunt-font-spider Goto Github PK
View Code? Open in Web Editor NEW字蛛 grunt 插件
Home Page: http://font-spider.org
License: MIT License
字蛛 grunt 插件
Home Page: http://font-spider.org
License: MIT License
Registering "grunt-font-spider" local Npm module tasks.
Reading /Users/godfery/GitRepo/pagurian/node_modules/grunt-font-spider/package.json...OK
Parsing /Users/godfery/GitRepo/pagurian/node_modules/grunt-font-spider/package.json...OK
Loading "font-spider.js" tasks...ERROR
>> TypeError: Cannot set property 'o' of undefined
>> at Object.<anonymous> (/Users/godfery/GitRepo/pagurian/node_modules/debug/node.js:71:22)
>> at Module._compile (module.js:571:32)
>> at Object.Module._extensions..js (module.js:580:10)
>> at Module.load (module.js:488:32)
>> at tryModuleLoad (module.js:447:12)
>> at Function.Module._load (module.js:439:3)
>> at Module.require (module.js:498:17)
>> at require (internal/module.js:20:19)
>> at Object.<anonymous> (/Users/godfery/GitRepo/pagurian/node_modules/lazy-debug-legacy/src/index.js:1:75)
>> at Module._compile (module.js:571:32)
Gruntfile.js
grunt.loadNpmTasks('grunt-font-spider');
const option = {
// 字蛛插件:压缩与转码静态页面中的 WebFont
'font-spider': {
options: {
/**
* 是否支持备份原字体
* @type {Boolean}
*/
backup: true,
/**
* 是否对查询到的文本进行去重处理
* @type {Boolean}
*/
unique: true,
/**
* 是否排序查找到的文本
* @type {Boolean}
*/
sort: true,
/**
* 是否支持加载外部 CSS 文件
*/
loadCssFile: true,
/**
* 是否忽略内部解析错误-关闭它有利于开发调试
* @type {Boolean}
*/
silent: true,
},
main: {
src: 'dist/templates/**/*.html'
}
}
}
grunt.initConfig(option);
还是钟爱gulp, 求一个gulp版 哈
npm install grunt-font-spider --save-dev
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
[email protected] install C:\Users\joinc\node_modules\ttf2woff2
(node-gyp rebuild > builderror.log) || (exit 0)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\joinc\node_modules\ttf2woff2
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\joinc\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\joinc\package.json'
npm WARN [email protected] requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN joinc No description
npm WARN joinc No repository field.
npm WARN joinc No README data
npm WARN joinc No license field.
垃圾玩意
readme中的相关链接,思源黑体: ttf 版本
链接失效了👽
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.