vuepress-plugin-christmas

这个是 vuepress 的圣诞插件,idea 来源于 codepan https://codepen.io/kevinjannis/pen/Krids 以及 https://codepen.io/xxholly32/details/XWjambb

Usage no npm install needed!

<script type="module">
  import vuepressPluginChristmas from 'https://cdn.skypack.dev/vuepress-plugin-christmas';
</script>

README

介绍

这个是 vuepress 的圣诞插件,idea 来源于 codepan https://codepen.io/kevinjannis/pen/Krids 以及 https://codepen.io/xxholly32/details/XWjambb

安装

yarn add -D vuepress-plugin-christmas

还需要配置 sass 相关,安装 sass

yarn add -D sass sass-loader

.vuepress/config.js 配置依赖

module.exports = {
  configureWebpack: {
    module: {
      rules: [
        {
          test: /\.scss$/,
          loader: "sass-loader",
          options: {
            implementation: require("sass"),
          },
        },
      ],
    },
  },
};

使用

module.exports = {
  plugins: ["vuepress-plugin-christmas"],
};