@webpg/scroll-spy
Version:
Hi guys, welcome to this repository. I created a light-weight Scroll Spy library that you could fully customize with CSS. It's usage is really easy.
20 lines (18 loc) • 370 B
JavaScript
import { resolve } from "path"
import dts from "vite-plugin-dts"
export default {
plugins: [
dts({
insertTypesEntry: true,
}),
],
build: {
copyPublicDir: false,
lib: {
entry: resolve(__dirname, "src/main.ts"),
name: "@webpg/scroll-spy",
fileName: "ScrollSpy",
formats: ['es', 'umd'],
},
},
}