gruntfile is the the main configuration location for customizing grunt which is used for automating and running JavaScript tasks.
Questions tagged [gruntfile]
91 questions
0
votes
1 answer
Adding server task to my gruntfile.js which contains connect task for connecting to middleware proxies, but not being found
I am adding a new server task to my existing gruntfile which contained the only task to build the content into minified files. I need to add the server/serve task. The goal of the server task for me is to connect to the middleware proxies to…

saumj
- 171
- 1
- 2
- 11
0
votes
1 answer
gruntfile.js Unable to compile; no valid source files were found
I am new to grunt and I'm having a tough time trying to figure out what I've done wrong.
When I run it I get the error "Unable to compile; no valid source files were found."
If anyone could give me some advice as to how to fix it, I would…

Yasin Shuman
- 127
- 2
- 14
0
votes
1 answer
Updated less files, not showing up after page refreshes
As the subject states, I have made some minor CSS updates via one of the LESS files on a Ghost theme but when I refresh I don't see the changes reflected. I'm assuming since I'm new to LESS and node that perhaps I'm missing compiling LESS to convert…

J.Rem
- 545
- 2
- 6
- 24
0
votes
1 answer
Loading "Gruntfile.js"... ERROR >> SyntaxError: Unexpected token { Warning: Task "default not found. Use --force to continue
module.exports = function(grunt){
'use strict';
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
//Lint JavaScript (validate JS)
jshint: {
all: {
…

Revathi
- 3
- 1
- 3
0
votes
1 answer
Grunt Watch not creating files on save
The tasks in my grunt file are running without errors but the files i'm asking it to create aren't being compiled. They are created if I simple run 'grunt' but if I use 'grunt watch' and save a file it doesn't update.
Particularly I am working on…

user2953989
- 2,791
- 10
- 36
- 49
0
votes
1 answer
Git reset or checkout specific file using Grunt
I have a grunt process that creates a deployment package, and it involves making changes to files that need to be present for deployment, but not checked into source.
I'm looking for an automated way to either reset individual files or checkout…

jlewkovich
- 2,725
- 2
- 35
- 49
0
votes
1 answer
Grunt Server Error
I've just taken over a web project that a previous development company only partially finished. The website is being served apparently by a Grunt server that I'm not familiar with.
When I run grunt, I'm given this error:
$ grunt
Loading "server.js"…

qarthandso
- 2,100
- 2
- 24
- 40
0
votes
1 answer
Grunt can't run SASS (grunt-contrib-sass)
I have configured my Gruntfile.js with this module, but when I run Grunt it's not working, it stops. This is my code:
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
…

Lydia
- 69
- 1
- 5
0
votes
1 answer
Grunt on html css and js file 404 (Not Found)
After fixing my css/scss compiling I'm now try to run the css on my html file, but I keep getting:
GET http://localhost:8080/dist/css/screen.css 404 (Not Found)localhost/:26
GET http://localhost:8080/source/js/modernizr.js 404 (Not…

DDfrontenderLover
- 470
- 1
- 6
- 23
0
votes
1 answer
Grunt is throwing error messages
I'm trying to run grunt in my project and I keep getting the errors below. I followed the "Getting Started" on the actual Grunt site and I keep getting this.
I've also included the code in my Gruntfile
This is my gruntfile below:
module.exports =…

Paul Kim
- 1
- 3
0
votes
2 answers
Gruntfile.js not running certain packages
can you please take a look at the following Gruntfile to see if you can determine why it isn't running cssnano and autoprefixer?
Grunt is currently watching my project and with each save grunt-sass compiles fine but neither grunt-cssnano or…

Luke
- 67
- 7
0
votes
1 answer
where do i put config for plugin when using gruntfile-gtx
So, I have installed single page app based on npm/bower/grunt/angular.js
In the root I have gruntfile.js with this code
module.exports = function(grunt) {
var gtx = require('gruntfile-gtx').wrap(grunt);
gtx.loadAuto();
var…

Orange
- 119
- 1
- 8
0
votes
1 answer
Grunt-Karma-Jasmine: can not find module
I am trying to set up tests for my Angular.js project and I keep getting "$injector:nomod, Module 'result' is not available! You either misspelled..." error. I am sure that I am including "result" module in the "files" array inside…

Nikita Vlasenko
- 4,004
- 7
- 47
- 87
0
votes
0 answers
Grunt include-replace string unexpexted token error / special characters in string
When I'm adding a string to the grunt-include-replace includes like shown below, I get an 'unexpected token error' in the console and the html file doesn't compile.
@@include('components/navigation.html', {
"list-elements": "

herrh
- 1,328
- 1
- 16
- 33
0
votes
1 answer
Unable to log error with postcss reporter and postcss bem linter in Gruntfile
I am using grunt-postcss in my gruntfile.js and everything works fine except the postcss-bem-linter which should log warning in the console if the BEM rules are not followed. Here a snippet of configuration in gruntfile.js:
var…

Ruben Rizzi
- 342
- 1
- 3
- 20