Questions tagged [gruntfile]

gruntfile is the the main configuration location for customizing grunt which is used for automating and running JavaScript tasks.

91 questions
0
votes
2 answers

Grunt usemin getting no targets found

I followed the following tutorial: https://www.youtube.com/watch?v=gIbfDxF69c8 and keep getting No "usemin" targets found. gruntfile.js: http://www.billiving.com/demo/script/gruntfile.js source…
Josh
  • 189
  • 1
  • 12
0
votes
0 answers

GRUNT: Concatenated CSS files not reflecting in index.html page

I have setup grunt task to concatenate the CSS files into a combined.css file and it successfully concatenates the CSS files. grunt.initConfig({ concat: { options: { separator: '\n\n\n', base: "../../../", …
Naren
  • 109
  • 1
  • 3
  • 13
0
votes
2 answers

Grunt so slow with watch multiple less tasks

I have a simple less files with very little contents but the compile time varies from 10 - 27s. Any ideas as to why? Is it my machine or the grunt settings that I am missing? Do I need to clear some sort of cache? Gruntfile.js…
Suthan Bala
  • 3,209
  • 5
  • 34
  • 59
0
votes
1 answer

Use Grunt for basic includes

I have an application that has 3 pages which I would like to be self-contained. In the interest of DRY code, I would like to do "includes" for the header and footer content. I have looked at the docs and examples for grunt-html-build and I'm somehow…
Greg Pettit
  • 10,749
  • 5
  • 53
  • 72
0
votes
1 answer

grunt.file write/copy with permissions

Is there a way to specify the permissions of a file during a grunt.file.copy(...), except using the 'fs.chmod' after copy has finished? I will have to require the whole 'fs' module otherwise, just for changing the permissions. Will it be a lot of…
Gautam
  • 108
  • 8
0
votes
1 answer

Bootstrap gruntfile. How to include cssmin task into watch task

I have a new Bootstrap project. Everything works, livereload, grunt command, watch command and cssmin command, so these tasks are ok. But, when I run grunt watch, there are not minified css files generated (I mean, when any less file change and…
aitor
  • 2,281
  • 3
  • 22
  • 44
0
votes
1 answer

add variable id in script tags using grunt

I have around 10 files for eg: file1.html, file2.html, fil31.html, file4.html Each file contains a starting and end script tag with blank id='' field I want to add id's to all the script tags in each file. The id's are the file names. before…
0
votes
1 answer

Does regular expression allow you to replace the ending and beginning of a word?

I'm having one heck of a time figuring out regular expression in the context of the grunt-string-replace plugin. I'm basically trying to take something like this: !random-cssmixin{} And turn it into this: .random-cssmixin; Is it possible to do…
jasonbarone
  • 172
  • 3
  • 17
0
votes
1 answer

How can I get grunt-autoprefixer to prefix uncompiled LESS files?

I'm working with LESS and I'd like to run grunt-autoprefixer on my LESS markup WITHOUT compiling LESS, because my LESS is compiled on my CMS automatically. Is this possible? Here's my Gruntfile.js module.exports = function(grunt)…
jasonbarone
  • 172
  • 3
  • 17
0
votes
1 answer

wiredep is returing physical path, instead of relative path

I'm trying to get the itens from wiredep in my gruntfile, but it is always returning a physical path, like: "D:\folder\folder\file.css", while in the documentation it says that it will return a relative path…
Jean Robert
  • 749
  • 1
  • 7
  • 20
0
votes
2 answers

Why is Grunt Copy giving me an 'undefined is not a function' warning?

I'm using Grunt as a build tool (surprise) and I'm using grunt-contrib-copy as a debugging and early development tool. I've scouted my code multiple times, and I don't understand why I'm getting an error. Here is my code. Gruntfile.js module.exports…
0
votes
1 answer

Using susy and breakpoint with grunt-sass

Im working on a new project and started to use grunt-sass instead of grunt-contrib-sass because its alot faster. I also removed compass. The thing now is that i cannot find a way to add 'susy' grid and 'breakpoint' anymore. I used to put this in a…
Toasty
  • 59
  • 12
0
votes
4 answers

Grunt doesn't change bower_components

I have this yeoman generated GruntFile.js. When I run "grunt" the dist folder does not change all my scripts from bower_components/*.js, only some of them. Here is a sample of index.html from dist folder
Shervin Asgari
  • 23,901
  • 30
  • 103
  • 143
-1
votes
2 answers

When I type in grunt, I get a 'jshint:all failed' error

I'm trying to run jshint through grunt but I'm getting the following error. Warning: Task "jshint:all" failed. Use --force to continue. Aborted due to warnings. I tried forcing it, but it only does a fraction of the work. Execution Time…
muzzo
  • 121
  • 1
  • 3
  • 9
-1
votes
1 answer

Grunt app deployed on Heroku ... and what's next ?... my app doesn't start

I have a basic node app with gruntfile and I had some pains to make the deploy. So I did a new grunt task, did some changes. The deploy then is fine. But now when I go to my app. I have a blank page. It doesn't load the appConfig.app dir. I…
user1713964
  • 1,209
  • 2
  • 14
  • 26