比如项目中使用了Bootstrap框架,用npm安装了Bootstrap包到node_modules下,如果用传统的方式:
1、在index.html中引入<script src="node_modules/bootstrap/build/bootstrap.min.js"></script>,很傻;
2、手动把bootstrap.min.js和bootstrap.min.css拷到scr文件夹下,感觉更傻了。
如果在webpack中,可以require任何资源,但是在grunt中,如何引用这些资源呢??