@huqiaodong/elegrant

1.0.7 • Public • Published

elegrant

vue3简易组件库

示例

cd examples

npm run dev // 请确保端口8000可用

文档

修复打包后无法正常运行项目问题

找到 docs/elegrant-docs/node_modules/@vuepress/client/lib/router.js文件

import { createMemoryHistory, createRouter, createWebHistory,START_LOCATION, } from 'vue-router'; 

const historyCreator = __VUEPRESS_SSR__ ? createMemoryHistory : createWebHistory;

将以上两行代码中的createWebHistory修改为createWebHashHistory

找到 docs/elegrant-docs/docs/.vuepress/config.js文件

增加base配置项

module.exports = {
    base: './', // 只在打包时加上,npm run docs:dev时需要将该配置注释掉,否则无法正常运行
}

启动服务

cd docs/elegrant-docs

npm run docs:dev // 请确保端口8080可用

Package Sidebar

Install

npm i @huqiaodong/elegrant

Weekly Downloads

0

Version

1.0.7

License

ISC

Unpacked Size

3.05 MB

Total Files

52

Last publish

Collaborators

  • huqiaodong