feat: html template specifier

This commit is contained in:
cha0s 2022-09-02 21:21:39 -05:00
parent 2ff0782d11
commit 5791c7a894
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ module.exports = async (flecks) => {
filename: `${name}.html`, filename: `${name}.html`,
inject: false, inject: false,
pluginId: `html-${name}`, pluginId: `html-${name}`,
template: flecks.buildConfig('template.ejs'), template: flecks.buildConfig('template.ejs', name),
templateParameters: (compilation, assets, assetTags, options) => { templateParameters: (compilation, assets, assetTags, options) => {
let styleFile; let styleFile;
const styleChunk = compilation.chunks.find((chunk) => ( const styleChunk = compilation.chunks.find((chunk) => (

View File

@ -103,7 +103,7 @@ export const hooks = {
* *
* See: https://github.com/jantimon/html-webpack-plugin/blob/main/docs/template-option.md * See: https://github.com/jantimon/html-webpack-plugin/blob/main/docs/template-option.md
*/ */
'template.ejs', ['template.ejs', {specifier: (specific) => `${specific}.template.ejs`}],
/** /**
* PostCSS config file. * PostCSS config file.
* *