![js-standard-style](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)
Twitter widgets loader for Nuxt
📖 Release Notes
Features
Setup
- Add
@miyaoka/nuxt-twitter-widgets-module
dependency using yarn or npm to your project - Add
@miyaoka/nuxt-twitter-widgets-module
to modules
section of nuxt.config.js
{
modules: [
'@miyaoka/nuxt-twitter-widgets-module',
[
'@miyaoka/nuxt-twitter-widgets-module',
{
directiveName: 'twitter-widgets',
scriptUrl: '//platform.twitter.com/widgets.js'
}
]
]
}
Usage
Add directive (default: v-twitter-widgets) to component that has tweet.
<some-component v-html="hasTweetText" v-twitter-widgets/>
Development
- Clone this repository
- Install dependnecies using
yarn install
or npm install
- Start development server using
npm run dev
License
MIT License
Copyright (c) Masaya Kazama mailto:miyan@t-p.jp