nuejs / nue

A content first web framework. Perfect for UX developers.
https://nuejs.org
MIT License
5.86k stars 171 forks source link

auto generate manifest.json file #256

Open yuhengliang opened 1 month ago

yuhengliang commented 1 month ago

If you want to use a traditional backend (such as Rails, Laravel) to serve HTML for Nuekit, similar to the Vite manifest. json file.

1、in site.yaml append: manifest: true

2、in nuekit.js insert line 115: data.manifest && await write(JSON.stringify(data, null, '\t'), '', 'manifest.json')