You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my first attempt to use a grunt plugin, so please forgive me if I am missing something obvious -- but I think I'm following the directions from Grunt and from you, and running into an error. My package.json looks like this:
Update your Gruntfile to look something like this.
module.exports=function(grunt){grunt.initConfig({pkg: grunt.file.readJSON('package.json'),'regex-replace': {foo: {// a target must be specified with a namesrc: ['components/bootstrap/less/navbar.less'],actions: [{search: '\.box-shadow(.*);$',replace: '',flags: ''}]}}});grunt.loadNpmTasks('grunt-regex-replace');grunt.registerTask('default',['regex-replace']);};
Just specify a target name and your fine.
Let me know.
Cheers
This is my first attempt to use a grunt plugin, so please forgive me if I am missing something obvious -- but I think I'm following the directions from Grunt and from you, and running into an error. My package.json looks like this:
And my Gruntfile.js looks like this:
Now, when I run grunt from the command line I get the following error:
Do you have any idea what I'm doing wrong? Thanks so much for your help.
The text was updated successfully, but these errors were encountered: