![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
webpack
zoe驿鹿
这个作者很懒,什么都没留下…
展开
-
【React】配置 Alias 别名
在src根目录新建config-overrides.js自定义webpack配置。安装 customize-cranpm install customize-craconst { override, addWebpackAlias } = require('customize-cra');const path = require('path')module.exports = override( addWebpackAlias({ '@': path.resol..原创 2020-09-03 16:49:16 · 1777 阅读 · 0 评论 -
webpack 打包报错:CleanWebpackPlugin is not a constructor 解决方案
const { CleanWebpackPlugin } = require('clean-webpack-plugin');plugins: [+ new CleanWebpackPlugin() ]plugins 实例化插件不需要再传目录。原创 2019-08-28 15:14:41 · 636 阅读 · 0 评论