![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
webpack4
文章平均质量分 52
Qin__
小前端一枚~
展开
-
babel-core升级为@babel/core ,eslint-loader升级为eslint-webpack-plugin, babel-eslint升级为@babel/eslint-parser
先把之前相关的包都卸载,再重装涉及到的改动文件package.json.babelrc文件.eslintrc.js文件webpack.dev.conf.js原创 2022-07-08 16:34:50 · 2146 阅读 · 0 评论 -
terser-webpack-plugin 替代uglifyjs-webpack-plugin
terser-webpack-plugin参考文档把webpack升级到4+升级过程参考https://blog.csdn.net/Uookic/article/details/115655538原创 2022-07-04 16:41:21 · 786 阅读 · 0 评论 -
webpack3.10.0升级到webpack4.46.0
目前公司webpack版本太低,3.10.1.去官网查看了一下现在已经有5.x版本了,为了稳健性,决定升级到4.x的最终版本4.46.0https://github.com/webpack/webpack/releases/tag/v4.46.0记录下升级遇到的问题1.yarn add webpack@4.46.0yarn devError: Cannot find module ‘webpack/bin/config-yargs’查找原因:webpack-dev-server版本过低(“w.原创 2021-04-13 16:58:31 · 4871 阅读 · 1 评论