把以下的代码放到composer.json的内,然后通过 composer install 直接更新或者加载,就会把目录移动到public/static 下面了
"scripts":{
"post-update-cmd": [
"rm -rf public/static/bootstrap",
"mkdir -p public/static/bootstrap",
"cp -R vendor/twbs/bootstrap/dist public/static/bootstrap",
"rm -rf vendor/twbs"
],
"post-install-cmd": [
"rm -rf public/static/bootstrap",
"mkdir -p public/static/bootstrap",
"cp -R vendor/twbs/bootstrap/dist public/static/bootstrap",
"rm -rf vendor/twbs"
]
},
网友评论