qq_瓜皮_dHSW79
2019-02-18 08:40
这个错误怎么弄哈 npm ERR! errno 1 npm ERR! my_vue_webpack@1.0.0 build: `webpack --config webpack.config.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the my_vue_webpack@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
15版本就把下面代码粘到webpack文件
const path = require("path");
// webpack.config.js
const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = {
entry: path.join(__dirname, "src/index.js"),
output: {
path: path.join(__dirname, "dist"),
filename: "bundle.js"
},
module: {
rules: [
{
test: /.vue$/,
loader: "vue-loader"
},
{
test: /.css$/,
loader: "css-loader"
},
]
},
plugins: [
new VueLoaderPlugin()
]
}
Vue+Webpack打造todo应用
84619 学习 · 812 问题
相似问题