feat: html template specifier
This commit is contained in:
parent
2ff0782d11
commit
5791c7a894
|
@ -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) => (
|
||||||
|
|
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user