# Some 'table' elements missing in hugo\_stats.json

**URL:** <https://discourse.gohugo.io/t/some-table-elements-missing-in-hugo-stats-json/28611>\
**Category:** support\
**Created:** [October 1, 2020, 4:36pm UTC](https://discourse.gohugo.io/t/some-table-elements-missing-in-hugo-stats-json/28611 "2020-10-01T16:36:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SanmayJoshi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sanmayjoshi/32/9451_2.png) [@SanmayJoshi](https://discourse.gohugo.io/u/SanmayJoshi)\
**Post date:** [October 1, 2020, 4:36pm UTC](https://discourse.gohugo.io/t/some-table-elements-missing-in-hugo-stats-json/28611/1 "2020-10-01T16:36:22Z")

</div>

While trying to optimize PostCSS workflow, I came across “PostProcess”. It’s great, really makes things smooth!

PurgeCSS with PostProcess uses `hugo_stats.json` as given [here](https://gohugo.io/hugo-pipes/postprocess/#css-purging-with-postcss). In my project, I had some ‘table’ elements like, `table`, `thead`, `tbody`, `tr`, `th`, and `td`. But I could see only `table` element in the `hugo_stats.json` file. This leads to PurgeCSS not accounting for the styles I have set for `td` and `th`.

Thoughts? Am I doing something wrong? Thanks in anticipation.

---

<div class="post-metadata">

**Author:** ![divinerites](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/divinerites/32/12625_2.png) [@divinerites](https://discourse.gohugo.io/u/divinerites)\
**Post date:** [October 1, 2020, 6:51pm UTC](https://discourse.gohugo.io/t/some-table-elements-missing-in-hugo-stats-json/28611/2 "2020-10-01T18:51:44Z")

</div>

I advise you to use this Bep’s module as a basis. It works really fine.

> [@Tailwind Starter](https://discourse.gohugo.io/t/tailwind-starter/28357):
>
> Someone asked for this. It’s a very basic project, but it should be simple to set up. Please shout if it’s not. It’s a GitHub template, but I assume it can also be used as a theme/module. Please shout if it cannot.

And may be look at this thread to see if this is your case, and try the Hugo dev version who provide a fix

> <https://github.com/gohugoio/hugo/issues/7746>
>
> \### What version of Hugo are you using (\`hugo version\`)?
> 
> \<pre\>
> $ hugo versio…n
> Hugo Static Site Generator v0.75.1/extended darwin/amd64 BuildDate: unknown
> \</pre\>
> 
> \### Does this issue reproduce with the latest release?
> Yes.
> 
> \- Exemple : \`\<a href="{{ $url }}" class="missingclass" title="Plus d'information"\>my text\</a\>\`
> \- Class \`missingclass\` not writen in \`hugo\_stats.json\`.
> \- This also prevent following classes to be treated.
> 
> All details are in this thread : https://discourse.gohugo.io/t/template-file-being-ignored-by-writestats/26447/4

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [October 1, 2020, 8:03pm UTC](https://discourse.gohugo.io/t/some-table-elements-missing-in-hugo-stats-json/28611/3 "2020-10-01T20:03:56Z")

</div>

> [@SanmayJoshi](#):
>
> Thoughts? Am I doing something wrong?

The case you describe is fixed in a Hugo version not so long ago.

---

<div class="post-metadata">

**Author:** ![SanmayJoshi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sanmayjoshi/32/9451_2.png) [@SanmayJoshi](https://discourse.gohugo.io/u/SanmayJoshi)\
**Post date:** [October 2, 2020, 11:55am UTC](https://discourse.gohugo.io/t/some-table-elements-missing-in-hugo-stats-json/28611/4 "2020-10-02T11:55:01Z")

</div>

Thanks for reply. Running `hugo version` outputs:

```auto
Hugo Static Site Generator v0.75.1-A4A7BAB7/extended linux/amd64 BuildDate: 2020-09-15T06:57:20Z

```

Edit: It’s working with v0.75.1. Thanks @bep, @divinerites !

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [October 4, 2020, 11:55am UTC](https://discourse.gohugo.io/t/some-table-elements-missing-in-hugo-stats-json/28611/5 "2020-10-04T11:55:02Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
