感谢老师,终于踩完所有的坑,基于最新版webpack,附带详细注释
地址:https://github.com/yangxiaosen/gallery-by-react
演示:https://yangxiaosen.github.io/gallery-by-react/
欢迎纠错~
地址:https://github.com/yangxiaosen/gallery-by-react
演示:https://yangxiaosen.github.io/gallery-by-react/
欢迎纠错~
2017-02-07
if (!this.state.imgsArrangeArr[index]) {
this.state.imgsArrangeArr[index] = {
pos: {
left: 0,
top: 0
}
}
}
这里老师写的有笔误吧
this.state.imgsArrangeArr[index] = {
pos: {
left: 0,
top: 0
}
}
}
这里老师写的有笔误吧
2017-01-17
https://github.com/webpack/json-loader
Note: Since webpack v2, JSON files will work by default. You might still want to use this if you use a custom file extension.
Note: Since webpack v2, JSON files will work by default. You might still want to use this if you use a custom file extension.