Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Add ability to mix and match webpack-webpack-plugin and html-webpack-plugin #154

Merged
merged 1 commit into from Jan 13, 2019

Conversation

brunocodutra
Copy link
Owner

Fixes #136

This PR makes the configuration below valid, resulting in two separate html files, only one of which has favicons injected as described by the predicate specified in inject.

plugins: [
    new HtmlWebpackPlugin({
        template: 'a.html.tmpl',
        filename: 'a.html',
    }),
    new HtmlWebpackPlugin({
        template: 'b.html.tmpl',
        filename: 'b.html',
    }),
    new WebappWebpackPlugin({
        logo: 'logo.svg',
        inject: htmlPlugin => htmlPlugin.options.filename === 'a.html',
    }),
],

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant