最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

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

引入css報(bào)路徑錯(cuò)誤

這樣引入css之后會(huì)報(bào)錯(cuò)


注釋引入的css 就不報(bào)錯(cuò)了

目錄結(jié)構(gòu)如下


https://img1.sycdn.imooc.com//5c0a0d9c000166fb05780281.jpg




import './css/common.css';

import layer from './components/layer/layer.js';

const App = function? () {

console.log(layer)

}


new App();




npm run webpack


> webpack-test3@1.0.0 webpack /Users/liqian/Downloads/workerspace/webpack/webpack-test3

> webpack --config webpack.config.js --progress --dispaly-modules --colors --dispaly-reason


Hash: 7ce335b0518fe1163f9c? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

Version: webpack 4.27.0

Time: 639ms

Built at: 2018-12-07 14:03:07

? ? ? ? ? ? Asset ? ? ? Size? Chunks ? ? ? ? ? ? Chunk Names

?? ? ? index.html? 171 bytes? ? ? ? ? [emitted] ?

js/main.bundle.js ? 4.86 KiB? ? main? [emitted]? main

Entrypoint main = js/main.bundle.js

[./src/app.js] 136 bytes {main} [built]

? ? + 1 hidden module


ERROR in ./src/app.js

Module not found: Error: Can't resolve '' in '/Users/liqian/Downloads/workerspace/webpack/webpack-test3'

?@ ./src/app.js 1:0-26

Child html-webpack-plugin for "index.html":

?? ? 1 asset

? ? Entrypoint undefined = index.html

? ? [./node_modules/html-webpack-plugin/lib/loader.js!./index.html] 366 bytes {0} [built]

? ? [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built]

? ? [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 519 bytes {0} [built]

? ? ? ? + 1 hidden module

npm ERR! code ELIFECYCLE

npm ERR! errno 2

npm ERR! webpack-test3@1.0.0 webpack: `webpack --config webpack.config.js --progress --dispaly-modules --colors --dispaly-reason`

npm ERR! Exit status 2

npm ERR!?

npm ERR! Failed at the webpack-test3@1.0.0 webpack script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.






正在回答

1 回答

發(fā)出來(lái)你的package.json看下

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

舉報(bào)

0/150
提交
取消

引入css報(bào)路徑錯(cuò)誤

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

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

幫助反饋 APP下載

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

公眾號(hào)

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