player icon indicating copy to clipboard operation
player copied to clipboard

run dev失败了

Open Undo101 opened this issue 4 years ago • 2 comments

image 是不能在mac上运行吗?

Undo101 avatar Mar 13 '20 13:03 Undo101

你好,出现这种情况是因为nodejs版本太高,并不是不能再mac上运行,解决的方案有2种 1、把nodejs降级为nodejs11 2、修改.electron-vue/webpack.web.config.js和.electron-vue/webpack.renderer.config.js文件的HtmlWebpackPlugin,添加templateParameters,修改后如下: new HtmlWebpackPlugin({ filename: 'index.html', template: path.resolve(__dirname, '../src/index.ejs'), templateParameters(compilation, assets, options) { return { compilation: compilation, webpack: compilation.getStats().toJson(), webpackConfig: compilation.options, htmlWebpackPlugin: { files: assets, options: options }, process, }; }, minify: { collapseWhitespace: true, removeAttributeQuotes: true, removeComments: true }, nodeModules: false })

c10342 avatar Mar 17 '20 08:03 c10342

确实可以 感谢!

Undo101 avatar Mar 18 '20 13:03 Undo101