随笔分类 - webpack
打包工具webpack
摘要:vue项目打包编译变慢,安装了 babel-plugin-dynamic-import-node 后速度变快了,但是打包出现Critical dependency: the request of a dependency is an expression 的警告。
阅读全文
摘要:问题描述:前端打包好后本地测试正常但是上线后ie11和ie9页面空白,edge和Chrome都正常显示 问题分析 之前版本没问题,新增功能后出问题可能是新增的页面或者路由问题 新增路由要增加打包名称 且不能重复 新增文件中有直接引入node_modules中的组件(问题所在) 解决办法 去掉新增文件
阅读全文
摘要:1. 这是在JavaScript配置中没有node.js,去设置中配置就行了,方法如下: 2. 备注(如果事先安装好了node里面就有,直接勾选)
阅读全文
摘要:1.问题描述:在vue2.0+ 中做一个公用的评论组件,:key使用的时创建评论的时间,当加载更多的时候,会报错: Duplicate keys detected: '2019-01-24T07:15:35.000Z'.This may cause an update error. 2. 出问题的代
阅读全文
摘要:npm WARN babel-loader@8.0.5 requires a peer of @babel/core@^7.0.0 but none is installed.
阅读全文
摘要:1. 直接安装报错(版本根据自己需求来) npm i node-sass@4.5.3 -D 报错不能下载 win32-x64-64_binding.node Downloading binary from https://github.com/sass/node-sass/releases/down
阅读全文
摘要:安装webpack-cli报错,以及解决方法
npm WARN webpack-cli@3.2.1 requires a peer of webpack@4.x.x but none is installed. You must install peer dependencies yourself.
阅读全文