Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚安装了带有引导程序的 Rails 7。默认情况下,它没有附带导入地图。
我可以将导入映射与纱线一起使用,还是应该只使用一种方法?
有什么我应该注意的兼容性问题吗?
如果同时使用两者,application.js 会是什么样子?
谢谢!
Bootstrap css 框架需要 SASS,而 SASS 是一个 Node 模块。当您指定要使用 Bootstrap 时,您的项目将切换到 ESBuild。在同一个 Rails 7.0.0 项目中不可能有 Importmap 和 Bootstrap。
查看以下文件:
目前唯一不需要 Node 的 CSS 框架是 Tailwindcss