随着IT技术的更新,“前端”的范围越来越广,由原来的Html网站,到后来的Html5,再到今天的“大前端”。

不得不说,“前端”大军突飞猛进,已经成为不可或缺的客户端技术栈。

下面梳理了Html项目的必备知识体系,会持续更新完善,欢迎大家一起填坑!

CSS

React

TypeScript

  • 基本类型
  • 类型匹配、定义与使用
  • 泛型

webpack

【webpack】进阶配置:解决跨域问题的4种方法
【webpack】进阶配置:resolve、DefinePlugin、webpack-merge
【webpack】进阶配置:webpack内置优化项
【webpack】进阶配置:多线程打包(happypack)
【webpack】进阶配置:prd环境webpack内置优化(tree-shaking、scope hosting)
【webpack】进阶配置:多入口打包&抽离公用代码块
【webpack】进阶配置:懒加载&热更新

webpack配置babel-loader的几种方式
Webpack5 配置分包加载 多文件js/css打包
webpack5 配置图片加载,url-loader已过时
Webpack5 配置 CssModules react-css-modules css-loader

  • webpack编译原理

【webpack】核心原理:钩子鼻祖——Tapable

js运行原理

Node.js

Node.js后台服务器搭建与API开发示例

常见问题

  1. 前端问题与小技巧汇总
  2. Cannot use JSX unless the '--jsx' flag is provided 报错解决
  3. react 找不到 'styleName' Property 'styleName' does not exist on type 'DetailedHTMLProps
  4. Module not found: Can't resolve 'react-css-modules' in ...
  5. Cannot find module './demo.styl' or its corresponding type declarations.ts(2307)
  6. TypeError: this.getOptions is not a function
  7. 新建项目运行报错:Error: "xx" CSS module is undefined.
  8. npm run eject 显示webpack配置文件
  9. 运行npm run eject报错:This git repository has untracked flies or uncommitted changes
  10. 在不用npm run eject的情况下,修改React内置webpack 配置
  11. React启动服务器报错:Error: Cannot find module 'webpack-cli/bin/config-yargs'
  12. React启动服务器报错:Cannot find module 'webpack'
  13. webpack报错:options should NOT have additional properties
  14. insertAt insert 报错:options has an unknown property 'insertAt'.
  15. postcss-loader autoprefixer 报错:Error: No PostCSS Config found in:
  16. Error: BABEL xxx.js: Using babel-preset-react-app requires that you specify NODE_ENV or BABEL_ENV environment variables.
  17. Error: Multiple configuration files found. Please remove one: - package.json - /Users/xxx/xxx/xxx/.babelrc
  18. TypeError: CleanWebpackPlugin is not a constructor
  19. Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
  20. Uncaught Error: ReactElement styleName property defines multiple module names ("content show-anim").
  21. 服务端异常 node.js - express : Cannot GET api
  22. webpack-merge smart is not a function
  23. (plugin postcss) Error: PostCSS plugin postcss-noop-plugin requires PostCSS 8.
  24. TypeError: webpack.NamedModulesPlugin is not a constructor
  25. SyntaxError: Unexpected end of JSON input解决
  26. Support for the experimental syntax 'jsx' isn't currently enabled (36:3):
  27. React+TS引用不带后缀的文件报错:Module not found: Error: Can't resolve './pages/home/home' in XXX
  28. React项目TS语法报错解决方案
  29. 前端跨域问题解决:The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.

h5_demo.zip