异常 : Could not freeze : Cannot read property 'hash' of undefined
使用webpage的HardSourceWebpackPlugin插件后出现此错误。

回答
见:
- Could not freeze ...: Cannot read property 'hash' of undefined 解决办法
 - Could not freeze .file name..: Cannot read property 'hash' of undefined
 - TypeError: Cannot read property 'hash' of undefined
 
我也遇到了这个问题, 使用了以下方案解决了 :
// vue.config.jsnew 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/
    }
]),
以上是 异常 : Could not freeze : Cannot read property 'hash' of undefined 的全部内容, 来源链接: utcz.com/a/33746.html

