异常 : Could not freeze : Cannot read property 'hash' of undefined

使用webpage的HardSourceWebpackPlugin插件后出现此错误。

回答

见:

我也遇到了这个问题, 使用了以下方案解决了 :

// vue.config.js

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/

}

]),

以上是 异常 : Could not freeze : Cannot read property 'hash' of undefined 的全部内容, 来源链接: utcz.com/a/33746.html

回到顶部