fix: autoinject needs work

This commit is contained in:
cha0s 2022-03-13 10:36:20 -05:00
parent ffbdb7777a
commit 55aaa1cddf
2 changed files with 4 additions and 2 deletions

View File

@ -50,9 +50,10 @@ module.exports = (async () => {
config.entry(name).add(entry);
neutrino.use(
htmlTemplate({
pluginId: `html-${name}`,
filename: `${name}.html`,
chunks: [name],
filename: `${name}.html`,
inject: false,
pluginId: `html-${name}`,
template: flecks.buildConfig('template.ejs'),
templateParameters: (compilation, assets, assetTags, options) => {
let styleFile;

View File

@ -15,5 +15,6 @@
<body>
<div id="<%= htmlWebpackPlugin.options.appMountId %>"></div>
<script src="/flecks.config.js"></script>
<%= htmlWebpackPlugin.tags.bodyTags %>
</body>
</html>