【发布时间】:2021-06-04 05:50:38
【问题描述】:
我将 jetstream+inertia.js 安装到我的 laravel 项目中,一切正常,但我只需要在 welcome. vue 组件中使用 bootstrap 5,我该如何处理呢?
我的app.js 文件;
require('./bootstrap');
// Import modules...
import {createApp, h} from 'vue';
import {App as InertiaApp, plugin as InertiaPlugin} from '@inertiajs/inertia-vue3';
import 'animate.css';
import Toaster from '@meforma/vue-toaster';
import 'alpinejs';
const el = document.getElementById('app');
createApp({
render: () =>
h(InertiaApp, {
initialPage: JSON.parse(el.dataset.page),
resolveComponent: (name) => require(`./Pages/${name}`).default,
}),
})
.mixin({methods: {route}})
.use(InertiaPlugin)
.use(Toaster)
.mount(el);
我的app.css 文件:
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
【问题讨论】:
-
是否需要Bootstrap v5?还是 v4 可以工作?
-
@Andrew bootstrap v5
标签: javascript laravel laravel-mix inertiajs jetstream