Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

prerender-seo

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prerender-seo

Prerender Javascript rendered pages for SEO

Source
npmnpm
Version
1.3.1
Version published
Maintainers
1
Created
Source

Introduction

Prerender HTML files using PhantomJS. Make sure the search engine crawlers capture the right content, not <div id="app"></div> stuff. The Most common user scenario are React and Vue rendered page.

Install

yarn add prerender-seo --dev

or npm

npm install prerender-seo --save-dev

API

const path = require('path')
const prerenderSEO = require('../lib')

prerenderSEO(
  path.resolve(__dirname, './dist'),
  ['/index.html']
)

Test

The test case use a vue-cli generated project

npm run test

License

The MIT License (MIT). Please see License File for more information.

FAQs

Package last updated on 09 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts