我正在学习本教程 https://formden.com/blog/isolate-bootstrap我在我的 Mac 上使用终端。我已经完成了步骤 1-3。当我尝试执行第 4 步时,它说“lessc:ENOENT:没有这样的文件或目录,打开'/Users/mikelee/prefix.less'”。任何人都可以弄清楚出了什么问题或建议一种更好/更简单的方法来隔离 bootstrap css 吗?谢谢。
最佳答案
您可以为 Bootstrap 4.1(使用 LESS 编译)使用独立的 css -
https://github.com/cryptoapi/Isolate-Bootstrap-4.1-CSS-Themes
它有独立的主题 CSS -
- bootstrapcustom.min.css - 默认 bootstrap 4.1 隔离样式
- > https://bootswatch.com/cerulean/ darkly.min.css - 独立的 css
- > https://bootswatch.com/darkly/ flatly.min.css - 独立的 css
- > https://bootswatch.com/flatly/ litera.min.css - 独立的 CSS
- > https://bootswatch.com/litera/ lux.min.css - 独立的 css
- > https://bootswatch.com/lux/ minty.min.css - 独立的 CSS
- ...
关于html - 尝试使用 Less 隔离 Bootstrap ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45551445/