已采纳回答 / 精慕门2798116
https://github.com/ustbhuangyi/animation 这是老师上传到github上面的例子,你clone下来就有源码和图片了。素材图片在demo目录下,rabbit-big.png,rabbit-lose.png,rabbit-win.png。
2016-11-23
最新回答 / weixin_慕标9233781
'./build',多了一个点,是 /build ,不是 ./build ,__dirname需要和 /build 进行拼接,不是和 ./builld 进行拼接。
2016-11-17
{
"name": "application-name",
"version": "0.0.1",
"devDependencies": {
"webpack":"^1.12.11"
}
}
"name": "application-name",
"version": "0.0.1",
"devDependencies": {
"webpack":"^1.12.11"
}
}
2016-11-17
output filename not configured
我对了n边了 。那错了啊
module.exports = {
entry :{
animation:'./src/animation.js'
},
output:{
path : __dirname + '/build',
filename:'[name].js',
library :'animation',
libraryTarget:'umd'
}
};
我对了n边了 。那错了啊
module.exports = {
entry :{
animation:'./src/animation.js'
},
output:{
path : __dirname + '/build',
filename:'[name].js',
library :'animation',
libraryTarget:'umd'
}
};
2016-11-16