@winner-fed/plugin-did-you-know
Version:
Did you know WinJS?
166 lines • 6.57 kB
JSON
{
"name": "@winner-fed/plugin-did-you-know",
"version": "1.0.1",
"description": "Did you know WinJS?",
"keywords": [
"WinJS"
],
"license": "MIT",
"main": "dist/plugin.js",
"files": [
"compiled",
"dist"
],
"devDependencies": {
"terminal-link": "^3.0.0"
},
"publishConfig": {
"access": "public"
},
"didYouKnow": [
{
"text": "dev 模式下访问 /__win 路由,可以发现很多有用的内部信息",
"majorVersion": 0
},
{
"text": "WinJS 的 MFSU 可能会遇到奇怪的问题,可以尝试关闭,可能就没了",
"url": "https://winjs-dev.github.io/winjs-docs/guides/faq.html#vue-warn-missing-ref",
"majorVersion": 0
},
{
"text": "如果要支持低版本浏览器,可尝试 legacy 配置项",
"url": "https://winjs-dev.github.io/winjs-docs/guides/legacy-browser.html",
"majorVersion": 0
},
{
"text": "如果想检测未使用的文件和导出,可尝试新出的 deadCode 配置项",
"url": "https://winjs-dev.github.io/winjs-docs/config/config.html#deadcode",
"majorVersion": 0
},
{
"text": "默认使用 esbuild 作为 JavaScript 压缩工具,也可通过 jsMinifier 配置项切换到 terser 或 uglifyJs 等",
"url": "https://winjs-dev.github.io/winjs-docs/config/config.html#jsminifier-webpack",
"majorVersion": 0
},
{
"text": "%%frameworkCliName%% g tsconfig 可一键完成项目的 TypeScript 配置",
"majorVersion": 0
},
{
"text": "如果你有 MPA(多页应用)需求,可尝试 mpa 配置项",
"url": "https://winjs-dev.github.io/winjs-docs/config/config.html#mpa",
"majorVersion": 0
},
{
"text": "如果你需要使用 Tailwind CSS, %%frameworkCliName%% g tailwindcss 就可以一键完成配置",
"url": "https://winjs-dev.github.io/winjs-docs/guides/generator.html#tailwind-css-%E9%85%8D%E7%BD%AE%E7%94%9F%E6%88%90%E5%99%A8",
"majorVersion": 0
},
{
"text": "如果你需要使用 Prettier, %%frameworkCliName%% g prettier 就可以一键完成配置",
"url": "https://winjs-dev.github.io/winjs-docs/guides/generator.html#prettier-%E9%85%8D%E7%BD%AE%E7%94%9F%E6%88%90%E5%99%A8",
"majorVersion": 0
},
{
"text": "如果你需要增加 Git 提交消息校验和自动代码格式化, %%frameworkCliName%% g precommit 就可以一键完成配置",
"url": "https://winjs-dev.github.io/winjs-docs/guides/generator.html#precommit-配置生成器",
"majorVersion": 0
},
{
"text": "%%frameworkCliName%% g page 可以快速生成页面模板",
"url": "https://winjs-dev.github.io/winjs-docs/guides/generator.html#page-%E9%A1%B5%E9%9D%A2%E7%94%9F%E6%88%90%E5%99%A8",
"majorVersion": 0
},
{
"text": "%%frameworkCliName%% g component 可以快速生成组件模板",
"url": "https://winjs-dev.github.io/winjs-docs/guides/generator.html#component-%E7%BB%84%E4%BB%B6%E7%94%9F%E6%88%90%E5%99%A8",
"majorVersion": 0
},
{
"text": "HMR=none %%frameworkCliName%% dev 可以关闭 WinJS 开发服务器的模块热替换功能",
"majorVersion": 0
},
{
"text": "PORT=9000 %%frameworkCliName%% dev 可以指定 WinJS 开发服务器的端口",
"majorVersion": 0
},
{
"text": "COMPRESS=none %%frameworkCliName%% build 可以关闭项目构建时的代码压缩功能, 方便调试项目的构建产物",
"majorVersion": 0
},
{
"text": "编写 public/loading.(js) 可以自定义页面的加载动画",
"majorVersion": 0
},
{
"text": "你知道可以通过 WIN_ENV 定义多个环境的配置吗",
"url": "https://winjs-dev.github.io/winjs-docs/guides/env-variables.html",
"majorVersion": 0
},
{
"text": "想快速修改 html 模板、DIY 项目?试试编写项目级插件",
"url": "https://winjs-dev.github.io/winjs-docs/guides/directory-structure.html#plugin-ts",
"majorVersion": 0
},
{
"text": "ANALYZE=1 %%frameworkCliName%% build 可以分析产物的源码构成",
"majorVersion": 0
},
{
"text": "如果想预览构建后产物, 可尝试 %%frameworkCliName%% preview",
"url": "https://winjs-dev.github.io/winjs-docs/cli/commands.html#preview",
"majorVersion": 0
},
{
"text": "页面加载慢、产物体积大怎么办?试试做代码拆分",
"url": "https://winjs-dev.github.io/winjs-docs/guides/code-splitting.html",
"majorVersion": 0
},
{
"text": "在 src/app.(ts|tsx) 运行时配置中轻松解决",
"url": "https://winjs-dev.github.io/winjs-docs/config/runtime-config.html",
"majorVersion": 0
},
{
"text": "遇到难解的配置问题,试试从 WinJS FAQ 中寻找答案",
"url": "https://winjs-dev.github.io/winjs-docs/guides/faq.html",
"majorVersion": 0
},
{
"text": "全局布局用 layout ,多层布局用 wrappers ,从文档了解更多路由的控制方法",
"url": "https://winjs-dev.github.io/winjs-docs/guides/routes.html",
"majorVersion": 0
},
{
"text": "全局样式、全局脚本写在哪里?创建 src/global.(ts|css) 轻松解决",
"url": "https://winjs-dev.github.io/winjs-docs/guides/directory-structure.html#global-j-t-sx",
"majorVersion": 0
},
{
"text": "网页重新部署后,用户遇到白屏,404 怎么办?快快使用 web-update-notification 插件解决",
"url": "https://winjs-dev.github.io/winjs-docs/plugins/webupdatenotification.html",
"majorVersion": 0
},
{
"text": "通过 mobile-layout 插件即可拥有布局,包括移动端H5常见的顶部标题栏,中间内容区域以及底部的标签栏",
"url": "https://winjs-dev.github.io/winjs-docs/plugins/mobilelayout.html",
"majorVersion": 0
},
{
"text": "想要一键开启状态管理的能力吗?试试 状态管理 插件",
"url": "https://winjs-dev.github.io/winjs-docs/plugins/statemanagement.html",
"majorVersion": 0
},
{
"text": "想要试试闪电般的构建速度吗?那还不赶紧一键开启 Rsbuild 构建工具",
"url": "https://winjs-dev.github.io/winjs-docs/config/config.html#rsbuild",
"majorVersion": 0
}
],
"scripts": {
"build": "father build",
"build:deps": "win-scripts bundleDeps",
"dev": "father dev",
"doctor": "father doctor"
}
}