按照老師的來出錯了
ERROR in ./src/app.vue?vue&type=style&index=0&lang=css Module parse failed: Unexpected character '#' (19:0) You may need an appropriate loader to handle this file type. | | | #test{ | ? ? color:red; | } @ ./src/app.vue 4:0-62出錯了了
ERROR in ./src/app.vue?vue&type=style&index=0&lang=css Module parse failed: Unexpected character '#' (19:0) You may need an appropriate loader to handle this file type. | | | #test{ | ? ? color:red; | } @ ./src/app.vue 4:0-62出錯了了
2018-05-09
舉報
2018-05-16
其實(shí)不按照老師的也可以,你這個是缺少了css-loader,改成以下這樣既可運(yùn)行:
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")
},
module:{
rules:[
{
test:/\.vue$/,
loader:"vue-loader",
exclude:/node_modules/
},
{
test:/\.css$/,
use:[
'vue-style-loader',
'css-loader'
]
}]
},
plugins:[
new VueLoaderPlugin()
]
}
2018-05-10
注意安裝的模塊的版本號??