如何删除Laravel项目中的twbs文件夹?

时间:2018-02-14 06:13:49

标签: css twitter-bootstrap laravel laravel-5.4 twitter-bootstrap-4

我不知道如何在我的Laravel项目中使用twbs。那我怎么能删除这个文件夹呢?

enter image description here

composer.json

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.6.4",
        "laravel/framework": "5.4.*",
        "laravel/tinker": "~1.0",
        "twbs/bootstrap": "4.0.0"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~5.7"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "scripts": {
        "post-root-package-install": [
            "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ],
        "post-install-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postInstall",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postUpdate",
            "php artisan optimize"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true
    }
}

3 个答案:

答案 0 :(得分:1)

"twbs/bootstrap": "4.0.0"移除composer.json行,然后移除run命令:

composer update

答案 1 :(得分:1)

好主意是使用composer remove命令而不更新所有其他包:

composer remove twbs/bootstrap

答案 2 :(得分:0)

运行此命令用于删除任何包

  

<强> composer remove twbs/bootstrap