如何正确从Laravel 7中删除引导程序?

时间:2020-08-28 10:23:49

标签: laravel

这是我第一次使用Laravel。执行laravel new <project>时,它会自动包含:

  • 引导文件夹
  • bootstrap.js
  • require('./bootstrap');在app.js中

我的package.json文件

{
    "private": true,
    "scripts": {
        "dev": "npm run development",
        "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
        "watch": "npm run development -- --watch",
        "watch-poll": "npm run watch -- --watch-poll",
        "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js",
        "prod": "npm run production",
        "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
    },
    "devDependencies": {
        "axios": "^0.19",
        "cross-env": "^7.0",
        "laravel-mix": "^5.0.1",
        "lodash": "^4.17.19",
        "resolve-url-loader": "^3.1.0",
        "sass": "^1.15.2",
        "sass-loader": "^8.0.0"
    }
}

如何删除/卸载它?我不需要Bootstrap,因为我已经有Tailwind来处理CSS。我不想在我的项目中放置未使用的文件。谢谢。

0 个答案:

没有答案