Giter Site home page Giter Site logo

grunt-font-spider's People

Contributors

aui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grunt-font-spider's Issues

Registering "grunt-font-spider" local Npm module tasks.

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, 求一个gulp版 哈

grunt-font-spider安装错误

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.