Skip to content

Could I use template? #8

@lixinliang

Description

@lixinliang

When inject is true, it works.

new HtmlWebpackPlugin({
    minify : false,
    filename,
    inlineSource : '.(js|css)$',
})

I want to use template to control the position of script.

new HtmlWebpackPlugin({
    minify : false,
    inject : false,
    filename,
    template,
    inlineSource : '.(js|css)$',
})

And the template like this,

<% for (key in htmlWebpackPlugin.files.chunks) { %>
<script src="<%= htmlWebpackPlugin.files.chunks[key].entry %>" type="text/javascript"></script>
<% } %>

And which attribute is the source ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions