Created
June 26, 2016 14:02
-
-
Save jrobinsonc/d6848cd503be37702ed9bed7af42f123 to your computer and use it in GitHub Desktop.
Grunt: change node_modules path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
sass: { | |
build: { | |
files: { | |
'css/app.min.css': 'css/src/main.scss' | |
} | |
}, | |
} | |
}); | |
// Se cambia la ruta para localizar el directorio donde esta `node_modules`: | |
var cwd = process.cwd(); | |
process.chdir('../../../../'); | |
grunt.loadNpmTasks('grunt-contrib-sass'); | |
// Se restaura la ruta original para que las tareas se puedan ejecutar correctamente. | |
process.chdir(cwd); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment