Skip to content

Differentiate css and js for template in chunks  #69

@rajar-r

Description

@rajar-r

on using this below all the chunks including css are also added as script html tag element rather than css tag element. how to add css with link tag and js with script tag using chunks.

<% for (var chunk in htmlWebpackPlugin.files.chunks) { %>

<script src="<%= htmlWebpackPlugin.files.chunks[chunk].entry %>"></script>

<% } %>

Also tried using below , but this include the css as well.

<% for (var chunk in htmlWebpackPlugin.files.js) { %>

<script src="<%= htmlWebpackPlugin.files.js[chunk]%>"></script>

<% } %>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions