在我的 sails.js 项目中包含 bootstrap.css 的最佳方式是什么?我已经安装了 bootstrap npm 包。
npm install bootstrap@3
我相信我应该将其导入到 assets/styles/importer.less
中,但尚未使其正常工作。
最佳答案
看起来你可能必须使用 Grunt 来编译 less,尝试运行
npm install
- 只是为了确保所有依赖项都已引入
然后运行
grunt
- 构建 Assets
http://sailsjs.org/documentation/concepts/assets/default-tasks#?less
https://github.com/gruntjs/grunt-contrib-less
https://github.com/WebDevStudios/CLI-Cheat-Sheet/blob/master/grunt-commands.md
关于node.js - 如何在 sails.js 中导入 bootstrap.css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40205067/