You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to inject HTML code built from .ejs template into js while building and bundling with webpack?
I want to build using all three configs, but the least step is to copy build outputs from first and then second step into last step's entry.
In single step/config, I neeed to have styles and HTML code to be injected and minified into corresponding js files, which are need to be also minified and uglified.
Last config is to just copy everything into single file.
Unfortunately this config doesn't work as intented, because it results with empty mm-bundle.[contenthash].js file, although all build processess aren't disrupted by errors.
@ar-IGT I ask this because I want to understand, if you want to load ejs and build template on your client you don't need this plugin, if you want to use ejs as a template for your HTML files, you need to install ejs-loader
Description
Is it possible to inject HTML code built from
.ejs
template into js while building and bundling with webpack?I want to build using all three configs, but the least step is to copy build outputs from first and then second step into last step's entry.
In single step/config, I neeed to have styles and HTML code to be injected and minified into corresponding js files, which are need to be also minified and uglified.
Last config is to just copy everything into single file.
Unfortunately this config doesn't work as intented, because it results with empty
mm-bundle.[contenthash].js
file, although all build processess aren't disrupted by errors.Config
And here's template:
Environment
The text was updated successfully, but these errors were encountered: