Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

良心教程 #2

Open
hucheng91 opened this issue Oct 22, 2016 · 10 comments
Open

良心教程 #2

hucheng91 opened this issue Oct 22, 2016 · 10 comments

Comments

@hucheng91
Copy link

良心教程啊,讲的挺好,官网api不适合新手

@94dreamer
Copy link
Owner

哈哈 谢谢你 让我有了续篇2的动力

@chenglongzjg
Copy link

star下,以表支持 不错

@emma1120
Copy link

灰常不错

@lcoder
Copy link

lcoder commented Jan 23, 2017

已star,仓库主多多更新啊

@yuling
Copy link

yuling commented Jun 10, 2017

请问大神,我启用热模块替换,就会报错:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

  • configuration.entry should be one of these:
    。。。
    怎么破啊

@94dreamer
Copy link
Owner

@yuling 贴出你的配置

@yuling
Copy link

yuling commented Jun 12, 2017

我试了,这样不行:
"devDependencies": {
"css-loader": "^0.28.4",
"html-webpack-plugin": "^2.28.0",
"style-loader": "^0.18.2",
"webpack": "^2.6.1",
"pleasejs": "^0.4.2",
"webpack-dev-server": "^2.4.5"
},
"dependencies": {
"lodash": "^4.17.4",
"pleasejs": "^0.4.2",
"webpack": "^2.6.1"
}

这样,把版本换成跟你一样就可以,请问大神这是何解:
"devDependencies": {
"css-loader": "^0.23.1",
"html-webpack-plugin": "^2.8.0",
"style-loader": "^0.13.1",
"webpack": "^1.12.13",
"pleasejs": "^0.4.2",
"webpack-dev-server": "^1.14.1"
},
"dependencies": {
"pleasejs": "^0.4.2"
}
@94dreamer

@94dreamer
Copy link
Owner

94dreamer commented Jun 12, 2017

@yuling 你的webpack和webpack-dev-server版本是2.X版本 ,webpack2请直接阅读官方中文文档https://doc.webpack-china.org/

@yuling
Copy link

yuling commented Jun 12, 2017

好的嘞,谢谢

@zhengwei1949
Copy link

真的很棒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants