Skip to content

https://github.com/mzgoddard/hard-source-webpack-plugin/issues/461#issuecomment-439177290 #548

@xiaoxixi6633

Description

@xiaoxixi6633

#461 (comment)
When I use this solution to solve the problem, it's an escape behavior to make other loaders work。

plugin:[
new HardSourceWebpackPlugin(),
new HardSourceWebpackPlugin.ExcludeModulePlugin({
            // HardSource works with mini-css-extract-plugin but due to how
            // mini-css emits assets, assets are not emitted on repeated builds with
            // mini-css and hard-source together. Ignoring the mini-css loader
            // modules, but not the other css loader modules, excludes the modules
            // that mini-css needs rebuilt to output assets every time.
            test: /mini-css-extract-plugin[\\/]dist[\\/]loader/
        })
]

Originally posted by @dazjean in #416 (comment)

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