mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 03:00:33 +03:00
feat: add browser build without ssr code
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { version } from '../package.json'
|
||||
import createMixin from './shared/mixin'
|
||||
import setOptions from './shared/options'
|
||||
import $meta from './client/$meta'
|
||||
|
||||
/**
|
||||
* Plugin install function.
|
||||
* @param {Function} Vue - the Vue constructor.
|
||||
*/
|
||||
function VueMeta(Vue, options = {}) {
|
||||
options = setOptions(options)
|
||||
|
||||
Vue.prototype.$meta = $meta(options)
|
||||
|
||||
Vue.mixin(createMixin(options))
|
||||
}
|
||||
|
||||
VueMeta.version = version
|
||||
|
||||
export default VueMeta
|
||||
Reference in New Issue
Block a user