![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
webpack
比国王富有
正在生成中
展开
-
webpack:Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js
错误:Module build failed (from ./node_modules/sass-loader/dist/cjs.js):Error: Missing binding C:\Users\jake\Desktop\learn-react\react-doubanOfme\node_modules\node-sass\vendor\win32-x64-72\binding.node...原创 2019-10-27 20:49:37 · 612 阅读 · 0 评论 -
常见的webpack错误和处理
解决方法:==================================================ERROR in ./src/main.jsModule build failed (from ./node_modules/babel-loader/lib/index.js):Error: Plugin/Preset files are not allowed to expor...原创 2019-09-26 00:25:58 · 488 阅读 · 0 评论 -
webpack:package.json中scripts的作用
webpack:package.json中scripts的作用为了在执行命令的时候输入太长的命令,我们可以将要执行的命令配置到 package.json的scripts中,因为scripts中配置可以 以键值对(key:value)的形式来取“别名”,在用npm run scripts中的key的时候,就相当于执行scripts的key键对应的value值,起到 达到“执行短的代码,起到相同的作...原创 2019-09-26 08:52:57 · 5292 阅读 · 2 评论 -
TypeError: cleanWebpackPlugin is not a constructor
在生产阶段阶段或者开发阶段中,为了清除构建文件夹下(dist)的多余的文件,我们一般使用clean-webpack-plugin插件.安装方式:npm install --save-dev clean-webpack-plugin或者 yarn add clean-webpack-plugin --dev官方解释:By default, this plugin will remove a...原创 2019-09-27 00:29:18 · 3604 阅读 · 1 评论 -
Module build failed (from ./node_modules/babel-loader/lib/index.js): ReferenceError: [BABEL]
Module build failed (from ./node_modules/babel-loader/lib/index.js):ReferenceError: [BABEL] C:\Users\jake\Desktop\react-review\src\main.js: Unknown option: C:\Users\jake\Desktop\react-review\node_mod...原创 2019-10-03 09:58:16 · 4292 阅读 · 0 评论