Node.js/webpack:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第709行: 第709行:
* 破坏 vue 里面的 css 提取,PurgecssPlugin 插件冲突
* 破坏 vue 里面的 css 提取,PurgecssPlugin 插件冲突
*: 只能删除 PurgecssPlugin
*: 只能删除 PurgecssPlugin
* (node:167734) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir '/node_modules'
*: 使用了绝对路径,应该用相对路径或者项目内的绝对路径
*: <syntaxhighlight lang="javascript">
        new HardSourceWebpackPlugin({
            cacheDirectory: './node_modules/.cache/hard-source/[confighash]',
            recordsPath: './node_modules/.cache/hard-source/[confighash]/records.json',</syntaxhighlight>