已采納回答 / 海姼
沒有裝webpack-cli吧,跟老師的版本有區別的,我在學習的時候 vue-loader必須和VueLoaderPlugin搭配使用,否則報錯,但是老師那里就沒有相關提示
2021-06-30
已采納回答 / 任性的學渣
如果你換成ES5就知道了this.todos.filter(function(todos) {? ? return completed === todos.completed}
2021-05-24
最贊回答 / 待何時
檢查你的vue-loader版本,v15版本要加一個plugins。在webpack.config.js中配置const?path?=?require('path');const?VueLoaderPlugin?=?require('vue-loader/lib/plugin');module.exports?=?{??entry:?path.join(__dirname,?'src/index.js'),??output:?{????filename:?'bundle.js',????path:?pat...
2020-06-26
已采納回答 / 三天半打漁
//?webpack配置文件? const?path?=?require('path'); const?htmlWebpackPlugin?=?require('html-webpack-plugin'); const?VueLoaderPlugin?=?require('vue-loader/lib/plugin');?//引入這行
module.exports?=?{ ????mode:'none', ?...
2019-10-10