mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-12 23:52:25 +03:00
0ab76ee16b
refactor: server injectors feat: add head, bodyPrepend, bodyAppend injectors refactor: create browserbuild through rollup replace (not separate entry)
12 lines
452 B
JavaScript
12 lines
452 B
JavaScript
import getMetaInfo from '../shared/getMetaInfo'
|
|
import { serverSequences } from '../shared/escaping'
|
|
import { setOptions } from '../shared/options'
|
|
import generateServerInjector from './generateServerInjector'
|
|
|
|
export default function generate (rawInfo, options = {}) {
|
|
const metaInfo = getMetaInfo(setOptions(options), rawInfo, serverSequences)
|
|
|
|
const serverInjector = generateServerInjector(options, metaInfo)
|
|
return serverInjector.injectors
|
|
}
|