I want to generate a template with Html Webpack Plugin. I don't want to generate an .html file from a template, I want to generate an .ejs template from another .ejs template.
I want to do this so that when rendering the template from the backend, I can insert different api keys depending on the environment. For example, I want to generate a template that looks something like this:
...
<script>
API.setKey('<%= APIKey %>');
</script>
...
so that when staging, a test key can be used.
Is it possible to generate templates with Html Webpack Plugin?
ejs-loaderto generate .ejs templates. https://github.com/okonet/ejs-loader - user5483398<%= '<%= APIKey %>' %>- oorst<%= '\<\%\= user_data \%\>' %>- tszekely