@web-localstorage-plus/offline
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

@web-localstorage-plus/offline

利用web-localstorage-plus为vue3组件跨级通信提供离线能力

安装

yarn add web-localstorage-plus @web-localstorage-plus/offline

使用

  • 初始化web-localstorage-plus

在入口文件main.ts中初始化存储库

import createStorage from 'web-localstorage-plus';
createStorage({
    rootName: 'spp-storage',
});
  • 在vite.config.ts中导入作为plugin
import { offline } from '@web-localstorage-plus/offline';
export default defineConfig({
    ...,
    plugins:[
        offline()
    ]
})

Readme

Keywords

none

Package Sidebar

Install

npm i @web-localstorage-plus/offline

Weekly Downloads

1

Version

0.0.0

License

MIT

Unpacked Size

171 kB

Total Files

9

Last publish

Collaborators

  • supan_20220713