nightingale/web
jsers 01c47fd48f fix: remove all falsey values 2020-04-15 10:57:30 +08:00
..
config init project 2020-03-11 18:25:20 +08:00
dll init project 2020-03-11 18:25:20 +08:00
src fix: remove all falsey values 2020-04-15 10:57:30 +08:00
.dockerignore add docker support 2020-03-23 00:05:53 +08:00
.editorconfig init project 2020-03-11 18:25:20 +08:00
.eslintignore init project 2020-03-11 18:25:20 +08:00
.eslintrc init project 2020-03-11 18:25:20 +08:00
CHANGELOG.md init project 2020-03-11 18:25:20 +08:00
Dockerfile add nginx & update monapi 2020-03-23 00:42:22 +08:00
README.md init project 2020-03-11 18:25:20 +08:00
fetk.config.js init project 2020-03-11 18:25:20 +08:00
package-lock.json feat: add English translation 2020-04-02 10:16:13 +08:00
package.json feat: add English translation 2020-04-02 10:16:13 +08:00
tsconfig.json init project 2020-03-11 18:25:20 +08:00

README.md

nightingale-web

开发

npm run start

访问 http://127.0.0.1:8000

构建

npm run build

构建后的代码默认会存放到 /pub 文件夹里

Dll

npm run dll

webpack dllPlugin
将相对稳定的包输出成 dll 减低生成环境的构建时间(开发环境不会依赖 dll),如果这些包有更新需要构建新的 dll默认的包请查看 config/webpack.dll.config.js

目录结构

  • config: 开发 & 构建配置
    • proxy.config.js代理配置
    • theme.jsantd 主题配置
    • webpack.config.jswebpack 开发环境补充配置,覆盖默认配置
    • webpack.build.config.jswebpack 构建补充配置,覆盖默认配置
    • webpack.build.config.jswebpack dll补充配置覆盖默认配置
    • webpackConfigResolveAlias.js 文件路径别名配置
  • src源代码所在目录
    • assets全局资源 img、css
    • common: 全局配置、通用方法
    • components公共组件
    • pages路由匹配的页面组件
    • app.jsx 菜单、路由配置组件
    • index.html单页
    • index.jsx入口文件
    • fetk.config.js 开发工具配置页面