Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use plugins #1186

Closed
mikaelzero opened this issue Jan 12, 2019 · 3 comments
Closed

how to use plugins #1186

mikaelzero opened this issue Jan 12, 2019 · 3 comments

Comments

@mikaelzero
Copy link

this is my config.js

module.exports = {
plugins: [
    ['@vuepress/plugin-back-to-top', true],
    ['@vuepress/plugin-pwa', {
      serviceWorker: true,
      updatePopup: true
    }],
    ['@vuepress/plugin-medium-zoom', true,{
      selector: 'img'
    }],
    ['@vuepress/google-analytics', {
      ga: 'UA-128189152-1'
    }],
  ],
}

all plugins are no working and no error log

this is my package.json

{
  "devDependencies": {
    "@vuepress/plugin-back-to-top": "^1.0.0-alpha.0",
    "@vuepress/plugin-medium-zoom": "^1.0.0-alpha.11",
    "@vuepress/plugin-pwa": "^1.0.0-alpha.11",
    "vuepress": "^0.14.8"
  },
  "scripts": {
    "docs:dev": "vuepress dev docs",
    "docs:build": "vuepress build docs"
  }
}

@ulivz ulivz added the question label Jan 12, 2019
@ulivz
Copy link
Member

ulivz commented Jan 12, 2019

See:

"vuepress": "^0.14.8"

and:

image


Also, if you expect others to help you, please DON'T delete the issue template. 🙂

@ulivz ulivz closed this as completed Jan 12, 2019
@mikaelzero
Copy link
Author

thanks,it's working

but have another question

- tag <main> has no matching end tag

i have to modify Home.vue every time

any sulotion about this?

this is my package.json

{
  "dependencies": {
    "vuepress": "^1.0.0-alpha.31"
  },
  "scripts": {
    "docs:dev": "vuepress dev docs",
    "docs:build": "vuepress build docs"
  },
  "devDependencies": {
    "@vuepress/plugin-back-to-top": "^1.0.0-alpha.0",
    "@vuepress/plugin-google-analytics": "^1.0.0-alpha.0",
    "@vuepress/plugin-medium-zoom": "^1.0.0-alpha.0",
    "@vuepress/plugin-pwa": "^1.0.0-alpha.0"
  }
}

@mikaelzero
Copy link
Author

i move theme_default to .vuepress/theme now,it's ok

@vuejs vuejs locked and limited conversation to collaborators Jan 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants