已采納回答 / minip
localhost:8000訪問就好了;你這個有提示條的 應(yīng)該訪問了localhost:8000/webpack-dev-server這個URL了
2017-05-04
現(xiàn)在生成的項(xiàng)目中沒有Gruntfile文件了, webpack.config.js的配置也完全不一樣了。視頻是不是應(yīng)該更新下?
2017-05-03
client?eb57:75 ./src/components/Main.js
Module build failed: SyntaxError: G:/react/gallery-by-react/src/components/Main.js: Unexpected token (67:3)
65 | </section>
66 | );
> 67 | },
| ^
68 | Constant:{
69 | centerPos:{
70 | left:0,
搞不明白為什么英文逗號不識別不了
Module build failed: SyntaxError: G:/react/gallery-by-react/src/components/Main.js: Unexpected token (67:3)
65 | </section>
66 | );
> 67 | },
| ^
68 | Constant:{
69 | centerPos:{
70 | left:0,
搞不明白為什么英文逗號不識別不了
2017-05-01
加載json這里有一個大坑,最新的是用
rules: [
{
test: /\.json$/,
use: 'json-loader'
}
]
而不是
{
test: /\.json$/,
loader: 'json-loader'
}
rules: [
{
test: /\.json$/,
use: 'json-loader'
}
]
而不是
{
test: /\.json$/,
loader: 'json-loader'
}
2017-04-27
最新回答 / 慕仰6929422
請問你是怎么啟動的呢,npm run satrt試過了嗎,然后訪問http://localhost:8000/webpack-dev-server/,具體的命令都寫在package.json里了,可以去看一下,webpack相關(guān)的配置在cfg那個文件夾下
2017-04-27
項(xiàng)目完整地址:https://github.com/zhangxintong/gallery-by-react
Demo:https://zhangxintong.github.io/gallery-by-react/
如有幫助幫忙點(diǎn)贊,謝謝
Demo:https://zhangxintong.github.io/gallery-by-react/
如有幫助幫忙點(diǎn)贊,謝謝
2017-04-17