Skip to content

regexp '$' not working?' #16

@lake2

Description

@lake2

I what exclude bundle.js from this fragment

    <script src="bundle.js"></script>
<script type="text/javascript" src="bundle.js?5fc2c71bd09ffa7a3df9"></script>

this seems not working

    plugins: [
        new HtmlWebpackPlugin({
            hash: true,
            template: './static/index.html',
            excludeAssets: [/bundle.js[^?]/]
        }),
        new HtmlWebpackExcludeAssetsPlugin(),
    ],

How can I do this ?

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