最新回答 / Bee2
其实不按照老师的也可以,你这个是缺少了css-loader,改成以下这样既可运行:const Path=require('path');const {VueLoaderPlugin}=require('vue-loader')module.exports={mode:'development',entry:Path.join(__dirname,"src/index.js"),output:{filename:"bundle.js",path:Path.join(__dirname,"dist")},mo...
2018-05-09
已采纳回答 / kaikai09
是在做什么操作的时候报出该错误信息的?建议把问题描述详细些,另外可以参考下这个链接:https://blog.csdn.net/bai_riqiang/article/details/80063774
2018-05-09
最新回答 / kaikai09
scoped属性它虽然可以让我们的组件的样式保持独立性,但同时使用scoped也存在一个问题,就是不应该在项目中定义重复的样式规则名称,可以将重复的样式规则名称调整后,再次尝试看看是否起作用。
2018-05-09
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
最新回答 / 慕粉3912077
在webpak.config.js的添加 const VueLoaderPlugin = require('vue-loader/lib/plugin'); 和 module.exports ={ plugins: [ //确保引入这个插件 new VueLoaderPlugin() ] }
2018-05-07
vue-loader v15需要独立安装VueLoaderPlugin,所以建议大家使用v14
https://github.com/symfony/webpack-encore/issues/311
https://github.com/symfony/webpack-encore/issues/311
2018-05-06