question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate parsed content during module boot in production

See original GitHub issue

Instead of adding the /api/_content/cache route in pre-render.

This way, Tailwind JIT (and others) will work.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Atinuxcommented, Jul 29, 2022

Can we at least, load all the raw files from the sources and store them? This way we can link to this directory for both dev and production, this is fine and faster as boot time and solve the CSS parsing issue for production for TailwindCSS

0reactions
farnabazcommented, Aug 3, 2022

As I checked tailwind build happens before nitro create/init, therefore we can’t use nitro.storage to fetch remote contents.

The solution is to create a storage instance in before:build hook, mount drivers, and fetch all contents and store them in cache dir.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Build a Custom Parser - Packet Coders
A guide into the world of parsing. Learn how to build your own custom parser from scratch.
Read more >
Core Features - Spring
This section dives into the details of Spring Boot. Here you can learn about the key features that you may want to use...
Read more >
The ANTLR Mega Tutorial - Federico Tomassetti
You create the AST by manipulating the parse tree, in order to get ... thumb is that when in doubt you let the...
Read more >
Webpack module federation is not working with eager shared ...
Just to make it clear for those who might miss the comment to the initial answer: It seems like the main reason of...
Read more >
Host and deploy ASP.NET Core Blazor WebAssembly
NET Core, Content Delivery Networks (CDN), file servers, ... SHA-256 hashes of boot resources at the time that the build output is produced....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found