描述:npm run dev 開(kāi)啟項(xiàng)目 沒(méi)有報(bào)錯(cuò) 顯示無(wú)法訪(fǎng)問(wèn)此網(wǎng)站
代碼:
package.json:
*"scripts": {
"dev": "webpack --watch --progress --config build/webpack.dev.conf.js",*
webpack.dev.conf.js:
const HOST = '127.0.0.1'
const PORT = '8080'
const devWebpackConfig = merge(baseWebpackConfig, {
module: {
rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
},
// cheap-module-eval-source-map is faster for development
devtool: config.dev.devtool,
// these devServer options should be customized in /config/index.js
devServer: {
clientLogLevel: 'warning',
historyApiFallback: true,
hot: true,
compress: true,
host: HOST,
port: PORT,
open: config.dev.autoOpenBrowser,
overlay: config.dev.errorOverlay
? { warnings: false, errors: true }
: false,
publicPath: config.dev.assetsPublicPath,
proxy: config.dev.proxyTable,
quiet: true, // necessary for FriendlyErrorsPlugin
watchOptions: {
poll: config.dev.poll,
}
},
**命令行運(yùn)行結(jié)果:**
I Your application is running here: http://127.0.0.1:8080
Hash: 18d4dc75a621c9da106b
Version: webpack 3.10.0
Time: 5526ms
Asset Size Chunks Chunk Names
0.js 318 kB 0 [emitted] [big]
static/img/hr-logo.0b6a588.svg 12 kB [emitted]
static/img/company-logo.12e0af2.jpg 76.4 kB [emitted]
static/img/hr-banner.aeedebc.jpg 62.2 kB [emitted]
static/img/m-company-logo.0566242.jpg 54.6 kB [emitted]
static/img/plus-banner-mobile.6a91180.svg 14.2 kB [emitted]
static/img/plus-banner.228bd34.jpg 82.2 kB [emitted]
static/img/zhichou-banner.886b8af.jpg 60.9 kB [emitted]
static/img/m-hr-logo.e5c7d89.svg 12.4 kB [emitted]
1.js 330 kB 1 [emitted] [big]
2.js 209 kB 2 [emitted]
app.js 426 kB 3 [emitted] [big] app
0.js.map 364 kB 0 [emitted]
1.js.map 381 kB 1 [emitted]
2.js.map 239 kB 2 [emitted]
app.js.map 525 kB 3 [emitted] app
index.html 976 bytes [emitted]
[./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/views/HomePage.vue] ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/views/HomePage.vue 547 bytes {2} [built]
[./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/views/HrPage.vue] ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/views/HrPage.vue 3.3 kB {0} [built]
[./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/views/PlusPage.vue] ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/views/PlusPage.vue 3.2 kB {1} [built]
[./node_modules/vue-loader/lib/template-compiler/index.js?{"id":"data-v-1a8461e6","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0&bustCache!./src/views/HrPage.vue] ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-1a8461e6","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0&bustCache!./src/views/HrPage.vue 11.5 kB {0} [built]
[./node_modules/vue-loader/lib/template-compiler/index.js?{"id":"data-v-24f5bec6","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0&bustCache!./src/views/PlusPage.vue] ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-24f5bec6","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0&bustCache!./src/views/PlusPage.vue 17.2 kB {1} [built]
[./node_modules/vue-loader/lib/template-compiler/index.js?{"id":"data-v-9ec71a3c","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0&bustCache!./src/views/HomePage.vue] ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-9ec71a3c","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0&bustCache!./src/views/HomePage.vue 3.11 kB {2} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 509 bytes {3} [built]
結(jié)果
[./src/main.js] ./src/main.js 231 bytes {3} [built]
[./src/router/index.js] ./src/router/index.js 503 bytes {3} [built]
[./src/store/index.js] ./src/store/index.js 765 bytes {3} [built]
[./src/views/HomePage.vue] ./src/views/HomePage.vue 1.67 kB {2} [built]
[./src/views/HrPage.vue] ./src/views/HrPage.vue 1.66 kB {0} [built]
[./src/views/PlusPage.vue] ./src/views/PlusPage.vue 1.67 kB {1} [built]
[./src/views/img/m-company-logo.jpg] ./src/views/img/m-company-logo.jpg 83 bytes {0} [built]
[./src/views/img/plus-banner-mobile.svg] ./src/views/img/plus-banner-mobile.svg 87 bytes {1} [built]
+ 113 hidden modules
Child html-webpack-plugin for "index.html":
1 asset
[./node_modules/html-webpack-plugin/lib/loader.js!./index.html] ./node_modules/html-webpack-plugin/lib/loader.js!./index.html 1.32 kB {0} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 509 bytes {0} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 517 bytes {0} [built]
+ 1 hidden module
結(jié)果http://localhost:8080/頁(yè)面顯示
無(wú)法訪(fǎng)問(wèn)此網(wǎng)站
localhost 拒絕了我們的連接請(qǐng)求。
北大青鳥(niǎo)APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國(guó)IT技能型緊缺人才,是大數(shù)據(jù)專(zhuān)業(yè)的國(guó)家
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國(guó)一站式人才培養(yǎng)平臺(tái)、一站式人才輸送平臺(tái)。2014年4月3日在美國(guó)成功上市,融資1
北大課工場(chǎng)是北京大學(xué)校辦產(chǎn)業(yè)為響應(yīng)國(guó)家深化產(chǎn)教融合/校企合作的政策,積極推進(jìn)“中國(guó)制造2025”,實(shí)現(xiàn)中華民族偉大復(fù)興的升級(jí)產(chǎn)業(yè)鏈。利用北京大學(xué)優(yōu)質(zhì)教育資源及背
博為峰,中國(guó)職業(yè)人才培訓(xùn)領(lǐng)域的先行者
曾工作于聯(lián)想擔(dān)任系統(tǒng)開(kāi)發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項(xiàng)目經(jīng)理從事移動(dòng)互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
浪潮集團(tuán)項(xiàng)目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺(tái)面向?qū)ο箝_(kāi)發(fā)經(jīng)驗(yàn),技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫(kù),具有快速界面開(kāi)發(fā)的能力,對(duì)瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁(yè)制作和網(wǎng)頁(yè)游戲開(kāi)發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開(kāi)發(fā)經(jīng)驗(yàn)。曾經(jīng)歷任德國(guó)Software AG 技術(shù)顧問(wèn),美國(guó)Dachieve 系統(tǒng)架構(gòu)師,美國(guó)AngelEngineers Inc. 系統(tǒng)架構(gòu)師。