Eric666666
2019-08-06 17:48
npm run build的时候报错
你的代码可以build了吗,我的也不可以
{
"name": "vue-webpack",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": " cross-env MODE_ENV=development webpack-dev-server --config build/webpack.config.js",
"build": "cross-env MODE_ENV=production webpack --config build/webpack.config.js"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/core": "^7.5.5",
"babel-loader": "^8.0.6",
"babel-plugin-component": "^1.1.1",
"cross-env": "^5.2.0",
"css-loader": "^3.0.0",
"file-loader": "^4.2.0",
"html-webpack-plugin": "^3.2.0",
"style-loader": "^0.23.1",
"vue-loader": "^15.7.0",
"vue-template-compiler": "^2.6.10",
"webpack": "^4.35.3",
"webpack-cli": "^3.3.5",
"webpack-dev-server": "^3.7.2"
},
"dependencies": {
"element-ui": "^2.11.1",
"vue": "^2.6.10",
"vue-router": "^3.0.7"
}
}
你前面npm install 没有安装vue-template-compiler
index.js 就是这样
index.js代码是怎么写的?
Vue+Webpack打造todo应用
84606 学习 · 787 问题
相似问题