Grunt plugin to update paths for concat, uglify and cssmin where is Nette Framework variable $basePath
npm install grunt-nette-basepath^1.0.0 and use-min ^2.4.0
shell
npm install grunt-nette-basepath --save-dev
`
One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js
grunt.loadNpmTasks('grunt-nette-basepath');
`
The "netteBasePath" task
$3
In your project's Gruntfile, add a section named netteBasePath to the data object passed into grunt.initConfig().
full example on github.com/chemix/Nette-Grunt
`js
grunt.initConfig({
...
netteBasePath: {
task: {
basePath: 'www',
options: {
removeFromPath: ['app/templates/']
}
}
},
...
})
`
`coffee
...
netteBasePath:
task:
basePath: 'www'
options:
removeFromPath: ['app/template/']
...
`
Multiple replacements
`coffee
...
netteBasePath:
taskCore:
basePath: 'www'
options:
removeFromPath: ['app/template/']
taskLibs:
basePath: 'www/components'
options:
searchPattern: '{$incPath}'
...
``