鍍金池/ 問答/HTML/ Vue.js中 process怎么引入?

Vue.js中 process怎么引入?

Vue.js中 process怎么引入?

發(fā)布我的dist目錄之后,出現(xiàn)這個(gè)錯(cuò)誤
圖片描述

圖片描述

回答
編輯回答
司令

google搜索: process is not defined

鏈接

Just add to your plugins this one

new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"development"' })
in your webpack.config.js

2017年9月19日 10:19
編輯回答
任她鬧

使用WebpackDefline插件

2017年7月14日 20:11