3 lines
586 B
JavaScript
3 lines
586 B
JavaScript
import{isFunction as a}from"vuepress/shared";import{path as m,getDirname as s}from"vuepress/utils";import{Logger as g}from"@vuepress/helper";const o="@vuepress/plugin-watermark",p=new g(o),_=import.meta.dirname||s(import.meta.url),f=({enabled:e=!0,...t}={})=>i=>(i.env.isDebug&&p.info("Options:",t),{name:o,define:{__WM_GLOBAL__:e===!0,__WM_OPTIONS__:t.watermarkOptions??{}},extendsPage:r=>{if(a(e)){const{frontmatter:n}=r;!("watermark"in n)&&e(r)&&(n.watermark=!0)}},clientConfigFile:m.resolve(_,"../client/config.js")});export{f as watermarkPlugin};
|
|
//# sourceMappingURL=index.js.map
|