![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
webpack踩坑集
开发路上的AZhe
做一个坚定的码农攻克狮
展开
-
webpack.config.js配置文件注释
webpack.config.js//nodejs的内置模块 先使用npm init初始化项目const path = require("path");//引入webpack模块(使用plugins)const webpack = require('webpack');//用来自动生成dist目录下的index.html页面代码const htmlWebpackPlugin =require('html-webpack-plugin');//用来丑化代码const uglifyjsWe原创 2020-10-24 10:24:34 · 285 阅读 · 0 评论 -
Uncaught Error: [HMR] Hot Module Replacement is disabled.
在plugins加new webpack.HotModuleReplacementPlugin(),//模块热替换插件HMR是简称(基本是版本问题)plugins:[new webpack.HotModuleReplacementPlugin(),]原创 2020-10-23 17:01:44 · 459 阅读 · 0 评论 -
ENOENT: no such file or directory, open ‘F:\projectItem\vscodeProject\package.json‘
少了一个切入目录,cd进去就好了原创 2020-10-21 11:11:17 · 536 阅读 · 0 评论