V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
whevether
V2EX  ›  React

分享一个我写的 react-router v6+webpack 的模版,压缩后不到 120kb

  •  
  •   whevether · 2021-11-21 23:57:59 +08:00 · 1014 次点击
    这是一个创建于 880 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://github.com/whevether/react-template
    写了权限控制以及多个布局的例子。
    3 条回复    2021-11-27 20:19:00 +08:00
    uen
        1
    uen  
       2021-11-23 17:39:28 +08:00
    感谢分享,已 starr 。( ps:太久没关注,eact-router v6 居然都出了)
    liumingyi1
        2
    liumingyi1  
       2021-11-26 10:59:20 +08:00
    有没有考虑使用 vite
    whevether
        3
    whevether  
    OP
       2021-11-27 20:19:00 +08:00
    @liumingyi1 vite 本身就是 dev server 稍微比 webpack-dev-server 快一点点。 生态差很多.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1637 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:46 · PVG 00:46 · LAX 09:46 · JFK 12:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.