module.exports = {
header: {
headers: {
'X-Agent': 'Juejin/Web',
'X-Legacy-Device-Id': '',
'X-Legacy-Token': '',
'X-Legacy-Uid': '',
'Content-Type': 'application/json'
}
},
header1: {
headers: {
'X-Juejin-Client': '',
'X-Juejin-Src': 'web',
'X-Juejin-Token': '',
'X-Juejin-Uid': '',
}
},
param_common: {
'operationName': '',
'query': '',
'variables': {
'first': 20, //一次性20条数据
},
},
param_recommend: {
'extensions': {
'query': {
'id': ''
}
}
},
param_others: {//除了推荐、关注标签外其他标签使用的query id一致
'extensions': {
'query': {
'id': ""
}
}
},
param_follow: {
"variables": {
"type": "ARTICLE",
"after": ""
},
"extensions": {
"query": {
"id": ""
}
}
},
param_articles_popular: {
'variables': {
'order': 'POPULAR'
}
},
param_articles_new: {
'variables': {
'order': 'NEWEST'
}
},
param_authors: {
'variables': {
'limit': 10,
'excluded': []
},
'extensions': {
'query': {
'id': ''
}
}
}
}
本项目跨域调用掘金的接口 请自行登录 juejin.im, 获取调用接口所需的 token 及各种查询的 extensions.query.id 值
webpack-bundel-analyzer 3.3.2 版本容易受 css 攻击
webpack-dev-server 3.1.11 之前的版本,因为 HMR 需要使用 WebSocket,但 WebSocket 不检查请求来源可能导致攻击者窃取代码
webpack 升级到 4
```
TypeError: Cannot find module 'webpack/bin/config-yargs'
```
```
TypeError: compilation.mainTemplate.applyPluginsWaterfall is not a function at D:\gitRepository\simple\node_modules\html-webpack-plugin\lib\compiler.js:81:51
```
```
TypeError: Cannot read property 'vue' of undefined
```
```
Module Error (from ./node_modules/vue-loader/lib/index.js): vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
Module parse failed: Unexpected character '@'
```
Cannot assign to read only property 'exports' of object '#<Object>' at Module../node_modules/webpack-dev-server/client/clients/BaseClient.js
Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead
npm install -D extract-text-webpack-plugin@next
Error: Path variable [contenthash] not implemented in this context: static/css/[name].[contenthash].css
new ExtractTextPlugin({
filename: utils.assetsPath('css/[name].[chunkhash:8].css'),//contenthash改为chunkhash:8
allChunks: true,
})
ERROR:babel-jest cannot read property 'cwd' of undefined
babel-jest 23版本以下
ERROR: Cannot read property 'fileCoverage' of undefined
jest版本21.2以下