Can webpack generate static HTML, reference dede system to generate static method?

can webpack generate static pages and refer to the method of static generation in dede system?

every time a single SPA page opens url, there is a request for background data, which is a bit disadvantageous to seo, but our company requires that static HTML, is generated after the request is made. Static HTML is used to open the next time.

can I refer to the static method generated by dede or the method to directly implement static html when webpack + html + axios, is used in the framework of my project?

Apr.11,2021

does this have anything to do with webpack? Your data is to get the interface is obviously a dynamic thing, how to static? You can only use something like ssr. If you are writing dead content, you can use prerender and other similar plug-ins to pre-render.


this has nothing to do with your front-end static. Dede is a template file compiled in the background, which can inject data into the web page file at the same time. In the front-end, frameworks such as Vue have server-side rendering and can do SEO optimization. Ordinary HTML still needs to let the back-end inject data into you.


Brother, this has something to do with webpack. How can you static the data in the background? And dede is not static, it just doesn't use the interface, the type of jsp form, that is, the background and front-end coupling. I think you should do this, give your written page (static page) to your background, and then ask him to put the data in it (don't use ajax,axios form).

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3635d-2c00d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3635d-2c00d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?