Gatsby将staticQuery结果添加到component。***。js中

时间:2020-08-10 13:26:09

标签: gatsby

我最近开始检查gastby在构建中的实际作用。而且我注意到,更改静态查询返回的数据会更改我的构建文件(component.***.jswebpack-runtime...)。摘录:

e.exports = JSON.parse('{"data":{"allMarkdownRemark":{"edges":[{"node":{"id":"...

这正常吗? -我希望被添加到/static/...

以前的component.***.js文件仍然在我的公共目录中。为什么尚未在新的版本上删除?

另一个问题:为什么应用于html的css类在构建之间也有所不同? (emotion.js)

enter image description here

  System:
    OS: Windows 10 10.0.19041
    CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
  Binaries:
    Node: 14.7.0 - ~\AppData\Local\Temp\yarn--2***685\node.CMD
    Yarn: 1.22.4 - ~\AppData\Local\Temp\yarn--1597***2685\yarn.CMD
    npm: 6.14.7 - C:\Program Files\nodejs\npm.CMD
  Languages:
    Python: 3.8.5
  Browsers:
    Edge: 44.19041.421.0
  npmPackages:
    gatsby: ^2.21.9 => 2.21.11 
    gatsby-image: ^2.4.0 => 2.4.0 
    gatsby-plugin-catch-links: ^2.0.9 => 2.3.0 
    gatsby-plugin-emotion: ^3.0.1 => 3.0.1 
    gatsby-plugin-layout: ^1.3.0 => 1.3.0 
    gatsby-plugin-manifest: ^2.0.12 => 2.4.1 
    gatsby-plugin-material-ui: ^2.1.8 => 2.1.8 
    gatsby-plugin-react-helmet: ^3.0.0 => 3.3.0 
    gatsby-plugin-s3: ^0.3.4 => 0.3.4 
    gatsby-plugin-sharp: ^2.0.15 => 2.6.0 
    gatsby-plugin-sitemap: ^2.0.3 => 2.4.1 
    gatsby-plugin-typescript: ^2.0.3 => 2.4.0 
    gatsby-plugin-webpack-bundle-analyser-v2: ^1.1.9 => 1.1.9 
    gatsby-remark-component: ^1.1.3 => 1.1.3 
    gatsby-remark-images: ^3.0.1 => 3.3.0 
    gatsby-source-filesystem: ^2.3.23 => 2.3.23 
    gatsby-transformer-remark: ^2.1.15 => 2.8.5 
    gatsby-transformer-sharp: ^2.1.9 => 2.5.0 

0 个答案:

没有答案