摘要: build后终端显示结果 The project was built assuming it is hosted at ./. You can control this with the homepage field in your package.json. 根据终端显示可以知道我们可以通过pac 阅读全文
posted @ 2020-11-20 17:58 webnote 阅读(628) 评论(0) 推荐(0) 编辑
摘要: 在 // style files regexes下添加如下两个常量 const lessRegex =/\.less$/; const lessModuleRegex=/\.module\.less$/; 如下 // Check if TypeScript is setup const useTyp 阅读全文
posted @ 2020-11-20 17:53 webnote 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 安装 babel-plugin-import $npm install babel-plugin-import 或 $ yarn add babel-plugin-import 在 webpack.config.js 的如下位置添加 [require.resolve('babel-plugin-im 阅读全文
posted @ 2020-11-20 17:30 webnote 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 在构建一个项目时,我们需要暴露文件来易于后期对配置的更改。 在终端运行命令 yarn eject 可以暴露配置。 但是有可能会出现如下截图的错误 这是因为我们使用脚手架创建一个项目的时候,自动给我们增加了一个.gitignore文件 而我们本地却没有文件仓库 这就需要在终端输入如下命令 就是用git 阅读全文
posted @ 2020-11-20 17:22 webnote 阅读(584) 评论(0) 推荐(0) 编辑