LaravelからBootstrap, jQueryを削除したい
質問内容
Laravelのバージョンが5.8の場合は、下記コマンドでjQueryとBootstrapを取り除くことができます。
php artisan preset none
ただ、Laravel6からpresetが使えなくなりました。
代替案として、php artisan ui
が使えそうかと思いましたが、
php artisan help ui
を実行すると、
Description: Swap the front-end scaffolding for the application Usage: ui [options] [--] <type> Arguments: type The preset type (bootstrap, vue, react) Options: --auth Install authentication UI scaffolding --option[=OPTION] Pass an option to the preset command (multiple values allowed) -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question --env[=ENV] The environment the command should run under -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
と表示され、presetにnoneを指定できないのが確認できます。これだとjQueryとBootstrapを既存の方法のように取り除くことができません。
どうしてもBootstrap, jQueryを読み込ませたくないときはどうすればよいでしょうか?
何かご存じなことがあれば、ご教示いただけると幸いです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/11/11 00:50