Skip to content

Commit 632a6a2

Browse files
committed
⭐ setting base to allow nested execution
1 parent 7df8058 commit 632a6a2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

gruntfile.js

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ module.exports = function (grunt) {
2121
return writeln;
2222
}
2323

24+
// load core tasks
25+
grunt.file.setBase( grunt.config.data.base );
2426
grunt.loadNpmTasks('grunt-contrib-uglify');
2527
grunt.loadNpmTasks('grunt-contrib-less');
2628
grunt.loadNpmTasks('grunt-contrib-cssmin');

lib/main.js

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Main.prototype.main = function( opt ){
8888
// minification options
8989
var options = {
9090
//pkg: '<json:package.json>',
91+
base: process.cwd(),
9192
gruntfile : path.normalize( __dirname+'/../gruntfile.js'),
9293
js: {
9394
min : {
@@ -148,6 +149,7 @@ Main.prototype.main = function( opt ){
148149
//
149150
options.requirejs.compile.options = rjs_options;
150151
}
152+
151153
// initialize grunt configuration
152154
grunt.initConfig( options );
153155

0 commit comments

Comments
 (0)