Git Product home page Git Product logo

utils-nuxt's Introduction

utils-nuxt

utils-nuxt lerna Conventional Commits

lihbr utils for Nuxt.js

About

@lihbr/utils-nuxt.* are helpers I use across my Nuxt.js projects. To achieve that purpose they are designed to be as agnostic as possible, although being quite opinionated.

โš ๏ธ Those packages just got migrated to actual packages and are still pre-major version (v1.x.x). I'll most likely refactor them before releasing a first major and allow myself to publish breaking changes while doing so, therefore if you want to use them as is I highly recommend watching out when upgrading their versions.

Also feel free to inspire from them, submit feedback or questions, or fork this repository~

Browse Documentation

utils-nuxt's People

Contributors

lihbr avatar mornir avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

Forkers

timbenniks

utils-nuxt's Issues

How to use @lihbr/utils-nuxt.head alongside vue-meta's per-page script array?

utils-nuxt.head offers tons of configuration our Nuxt project would benefit from. However, I'm not sure how to use it with other head() {} functions on per-page instances like a vanilla Nuxt project. I want to still be able to add scripts or portions of vue-meta's head function that are NOT covered by utils-nuxt.head meta and structured data.

Ex: how to use:

  head() {
    return this.$buildHead({
      title: "Home",
      description: "Welcome to My Company home page",
      metaImage: {
        og: "https://example.com/home-1200x630.jpg",
        tw: "https://example.com/home-1200x600.jpg"
      },
      path: this.$route.path,
      additionalStructuredData: []
    });
  }

alongside page-level 3rd party script declarations:

head() {
  return {
      script: [
        {
          type: 'text/javascript',
          src: 'https://example.com/3rd-party-script.js',
          async: true
        }
      ]
    }
}

Any guidance would be appreciated! Thank you for making this public.

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.