Gridsome: CSS code missing in build

Created on 8 Oct 2019  路  1Comment  路  Source: gridsome/gridsome

Hi,

I use the tailwind CSS plugin and the remark-highlightjs plugin. Indevelopment the source code is highlighted, but not in the build version. After the build only used CSS classes for tailwind CSS are included which is has expected. The problem is that the CSS classes from highlight.js are not included, is this because my source is a markdown file which did not include the html tags with the neede classes (remark-highlightjs plugin converts the markdwon to html). Is there an option to include the css file of highlighjs without checking if the classes are used on the site (only for highlight.js, for tailwind CSS only used classes may be included in the build)

Thanks in advance.

Most helpful comment

Try remove purge css from the Tailwind plugin. Or whitelist the classes from highlight.js

>All comments

Try remove purge css from the Tailwind plugin. Or whitelist the classes from highlight.js

Was this page helpful?
0 / 5 - 0 ratings

Related issues

itech001 picture itech001  路  32Comments

stowball picture stowball  路  26Comments

LukeXF picture LukeXF  路  33Comments

SteveEdson picture SteveEdson  路  19Comments

eleijonmarck picture eleijonmarck  路  18Comments