Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
joyer-cli
Advanced tools
统一使用较新的LTS版本,推荐 v16.20.2 (LTS)(2023-08-10)
, 安装方式nvm
统一使用npm
作为包管理工具,不使用yarn
joyer-cli
npm install joyer-cli -g
joyer-cli
webpack@4.43.0
webpack-dev-server@3.11.0
@babel/preset-env@7.7.7
@babel/core@7.7.7
joyer install <template>
原计划到source.jd.com
上面专门开一个repo用来存放和维护今后要用到的模板,但由于访问需要登录,故放弃
JOYER_GIT_TOKEN
,这已经是目前能想到的最小成本的方案了,后续待讨论...考虑实现类似joyer upgrade
来更新组件库?
joyer install
命令来重新安装组件库考虑替代通过检测process.env
的方式来区分域名及环境,原因reading-environment-variables-is-slow-operation
抽离公共css的过程中发现了问题:optimization.splitChunks.cacheGroups.{cacheGroups}.enforce: true
会产生一个空的js文件,目前还没有官方解决方案
然后抽离css过程中发现新问题,在scss
中使用@import
引入的common.scss
不会被抽离
common.scss
中的内容匹配并移除html-webpack-plugin和html-loader同时使用,会使html-webpack-plugin注入html变量失效
open-browser-webpack-plugin在windows子系统linux(Bash on Windows)中存在问题,不能打开浏览器
单页面应用使用history模式时,想利用HtmlWebpackPlugin输出多个index.html文件到各个路由目录,发现它不支持相对路径,导致路由目录下的index.html文件资源引用出错
webpack-plugins/fix-html-webpack-plugin-relative-path.js
自行解决FAQs
A new scaffold for web project
The npm package joyer-cli receives a total of 35 weekly downloads. As such, joyer-cli popularity was classified as not popular.
We found that joyer-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.