feat: html template specifier
This commit is contained in:
parent
2ff0782d11
commit
5791c7a894
|
@ -50,7 +50,7 @@ module.exports = async (flecks) => {
|
|||
filename: `${name}.html`,
|
||||
inject: false,
|
||||
pluginId: `html-${name}`,
|
||||
template: flecks.buildConfig('template.ejs'),
|
||||
template: flecks.buildConfig('template.ejs', name),
|
||||
templateParameters: (compilation, assets, assetTags, options) => {
|
||||
let styleFile;
|
||||
const styleChunk = compilation.chunks.find((chunk) => (
|
||||
|
|
|
@ -103,7 +103,7 @@ export const hooks = {
|
|||
*
|
||||
* 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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user