antwarjs / antwar

A static site generator built with React and Webpack.
https://antwar.js.org/
MIT License
460 stars 35 forks source link

Roadmap #130

Open bebraw opened 7 years ago

bebraw commented 7 years ago

Snipped from #129.

I'm currently refactoring it a bit (simpler configuration) and hope to get the work done very soon so I can start using the generator in places. I've actually pushed a lot of weight from the core during this process. This has given a nice degree of flexibility that I like. I'm also adding some tests in place so it's easier to contribute if someone wants to.

There's no official road map but I have at least the following concerns in mind:

Especially the last items might not happen as I don't have to maintain big sites to warrant that style of work. That said, I have to push the performance somehow as a Travis build against the webpack site is far too slow. A part of that might be just a matter of configuration.

sukrosono commented 6 years ago

The last item really appealing, yet we don't have better approach.

generating the whole site always

What about we prevent creating new file (only html?) , and look existing file. When we found we compare the date, take the process the new one. Also introduce new flag always_generate , that prevent the default behavior (described above).

It's just theoretical approach, i am not using antwar yet. I on my way learning react and found antwar when examine webpack documentation (webpack.js.org).

bebraw commented 6 years ago

@brutalcrozt Caching might be a red herring. Since I wrote the issue, Antwar has become significantly faster. It's due to architectural improvements, webpack, and Node speedups. I can generate a site with about 300 pages in 5 seconds on my computer. Speed is not an issue. 👍

You can try it yourself by cloning this site.

bebraw commented 6 years ago

I've worked on performance a lot lately. The generator runs on webpack 4 now and I also found a few ways to improve the configuration further.