Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

Use template-literal instead of EJS #135

Open
Drulac opened this issue Jan 7, 2018 · 2 comments
Open

Use template-literal instead of EJS #135

Drulac opened this issue Jan 7, 2018 · 2 comments

Comments

@Drulac
Copy link

Drulac commented Jan 7, 2018

Template Literal is fastest, smallest and simplest template engine, because it use JS's literal template feature.

It's 55 times faster than EJS, and it also use less CPU and RAM ressources, so it may be a good idea to use it instead of EJS 😀

@bebraw
Copy link
Member

bebraw commented Jan 11, 2018

Hi,

Currently antwar is coupled with html-webpack-plugin. It's possible to replace the template engine there. The problem is that I don't expose the plugin enough at the moment.

I think it would be a good idea to refactor this integration so you can plug in template-literal. We should agree on a design first.

@bebraw
Copy link
Member

bebraw commented Mar 10, 2018

I wrote mini-html-webpack-plugin. It uses literals as you suggested.

I guess the next step would be to figure out a nice way to integrate but it's a good change to make.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants