@vuepress/plugin-medium-zoom
Advanced tools
Comparing version 1.0.0-alpha.18 to 1.0.0-alpha.19
const { path } = require('@vuepress/shared-utils') | ||
module.exports = { | ||
module.exports = (options, context) => ({ | ||
define: { | ||
SELECTOR: options.selector || '.content img' | ||
}, | ||
clientRootMixin: path.resolve(__dirname, 'mixin.js') | ||
} | ||
}) |
@@ -0,1 +1,3 @@ | ||
/* global SELECTOR */ | ||
import './style.css' | ||
@@ -7,5 +9,5 @@ import zoom from 'medium-zoom' | ||
setTimeout(() => { | ||
zoom('.content img') | ||
zoom(SELECTOR) | ||
}, 1000) | ||
} | ||
} |
{ | ||
"name": "@vuepress/plugin-medium-zoom", | ||
"version": "1.0.0-alpha.18", | ||
"version": "1.0.0-alpha.19", | ||
"description": "medium-zoom plugin for vuepress", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# @vuepress/plugin-medium-zoom | ||
> medium-zoom plugin for vuepress | ||
## Usage | ||
```javascript | ||
module.exports = { | ||
plugins: ['@vuepress/medium-zoom'] | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1207
23
4