美文网首页
TP5 composer bootstrap 安装

TP5 composer bootstrap 安装

作者: Albert新荣 | 来源:发表于2020-08-06 14:30 被阅读0次

    把以下的代码放到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"
    ]
    },

    相关文章

      网友评论

          本文标题:TP5 composer bootstrap 安装

          本文链接:https://www.haomeiwen.com/subject/srwzrktx.html