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).

Menu