达观科技使用的是grunt脚本管理工具进行相关操作,这里使用到grunt提供的相应的插件grunt-contrib-requirejs来自动完成任务。 grunt-contrib-requirejs在Gruntfile.js中的配置信息 其中几个核心参数的含义如下: baseUrl: 类似于上一节中requirejs配置参数中的baseUrl,如果requirejs 更多配置的介绍可以查阅https://github.com/gruntjs/grunt-contrib-requirejs。
接下来 所以接下来我打算在 Grunt 中使用「grunt-contrib-sass」和「grunt-contrib-requirejs」,这样在 php 函数都只需要引入一个入口文件,然后 sass grunt-contrib-htmlmin": "^0.6.0", "grunt-contrib-imagemin": "^1.0.0", "grunt-contrib-jshint": "^0.12.0", "grunt-contrib-requirejs