RequireJS experiment.
This commit is contained in:
parent
93f7e82c2d
commit
70059e4ed5
16
grunt.js
16
grunt.js
|
@ -9,6 +9,7 @@ module.exports = function(grunt) {
|
|||
|
||||
grunt.loadNpmTasks('grunt-coffee');
|
||||
grunt.loadNpmTasks('grunt-recess');
|
||||
grunt.loadNpmTasks('grunt-requirejs');
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
|
@ -69,6 +70,21 @@ module.exports = function(grunt) {
|
|||
jQuery: true
|
||||
}
|
||||
},
|
||||
requirejs: {
|
||||
dir: 'dist',
|
||||
appDir: 'src',
|
||||
baseUrl: '.',
|
||||
paths: {
|
||||
jquery : './libs/jquery',
|
||||
},
|
||||
pragmas: {
|
||||
doExclude: true
|
||||
},
|
||||
modules: [{name: 'priority'}],
|
||||
skipModuleInsertion: false,
|
||||
optimizeAllPluginResources: true,
|
||||
findNestedDependencies: true
|
||||
},
|
||||
recess: {
|
||||
dev: {
|
||||
src: ['src/style.less'],
|
||||
|
|
Loading…
Reference in New Issue