第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

絕對(duì)路徑問題

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.output.path: The provided value "./dist/js" is not an absolute path! 請(qǐng)問老師, 這個(gè)報(bào)錯(cuò)是為啥???這是我在執(zhí)行wekpack時(shí)候出現(xiàn)的

正在回答

2 回答

路徑改成這樣,為什么還報(bào)錯(cuò)。報(bào)錯(cuò)提示bundle.js Failed to load resource: net::ERR_FILE_NOT_FOUND

代碼如下:請(qǐng)指點(diǎn)下

var path=require("path");


module.exports={


entry:"./src/js/app.js",

output:{

?path:__dirname+"/dist",

?filename:"bundle.js"

},

module:{

? loaders:[


? ? {test:/\.css$/,loader:"style-loader!css-loader"}


? ]


}



}


0 回復(fù) 有任何疑惑可以回復(fù)我~

在webpack.config.js文件里面引入:

var path = require("path");

output參數(shù)中path改成:

path : path.resolve(__dirname,'./dist/js'),

4 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

絕對(duì)路徑問題

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)