我的webpack版本:
Version: webpack 4.8.2
Time: 1254ms
Built at: 2018-05-12 18:59:02
Asset Size Chunks Chunk Names
bundle.js 259 KiB main [emitted] main
针对这一节,和老师不同的是:
在 module.exports 中添加了
mode: 'development',
entry: path.resolve(__dirname,'src/index.js')
还有vue-loader安装14版的
Version: webpack 4.8.2
Time: 1254ms
Built at: 2018-05-12 18:59:02
Asset Size Chunks Chunk Names
bundle.js 259 KiB main [emitted] main
针对这一节,和老师不同的是:
在 module.exports 中添加了
mode: 'development',
entry: path.resolve(__dirname,'src/index.js')
还有vue-loader安装14版的
2018-05-12
在没报错的情况下,如果 app.vue的 {{text}}显示不出来
入口文件的 Vue实例中的render函数改为
render: h => render: (h) => h(App)
或
render: h => {
return h(App);
}
入口文件的 Vue实例中的render函数改为
render: h => render: (h) => h(App)
或
render: h => {
return h(App);
}
2018-05-10
22 error newstuderwebpack@1.0.0 build: `webpack --config webpack.config.js`
22 error Exit status 2
23 error Failed at the newstuderwebpack@1.0.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
22 error Exit status 2
23 error Failed at the newstuderwebpack@1.0.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
2018-05-08
22 error newstuderwebpack@1.0.0 build: `webpack --config webpack.config.js`
22 error Exit status 2
23 error Failed at the newstuderwebpack@1.0.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
直接最新版本总是报错 !!! 我一直怀疑我写错了 , 找了一晚上 好心累!
22 error Exit status 2
23 error Failed at the newstuderwebpack@1.0.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
直接最新版本总是报错 !!! 我一直怀疑我写错了 , 找了一晚上 好心累!
2018-05-08
vue-loader v15需要独立安装VueLoaderPlugin,所以建议大家使用v14
https://github.com/symfony/webpack-encore/issues/311
https://github.com/symfony/webpack-encore/issues/311
2018-05-06
报错可能原因,第一: webpack版本问题(如下是老师使用的版本) :安装npm i webpack@3.10.0 第二: vue-loader 版本问题:安装npm i vue-loader@13.6.0
2018-05-03