vuepress-plugin-medium-zoom
Version:
VuePress plugin for medium-zoom
13 lines • 512 B
JavaScript
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');
const MediumZoomPlugin = ({ selector = '.theme-default-content img', options = {}, delay = 500, }) => ({
name: 'vuepress-plugin-medium-zoom',
clientRootMixin: path.resolve(__dirname, 'clientRootMixin.js'),
define: {
MZ_SELECTOR: selector,
MZ_OPTIONS: JSON.stringify(options),
MZ_DELAY: delay.toString(),
},
});
module.exports = MediumZoomPlugin;
//# sourceMappingURL=index.js.map