Questions tagged [gruntfile]

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

91 questions
23
votes
3 answers

The implementation option must be passed to the Sass task

Running grunt - I get this error message: Running "sass:all" (sass) task Fatal error: The implementation option must be passed to the Sass task I've tried re-installing grunt, node, npm, dependencies - but I always come back to this error I can't…
DrewM
  • 353
  • 1
  • 3
  • 9
16
votes
1 answer

Gruntfile not working when running the grunt build command

I used yeoman to create my structure using "yo webapp", I excluded all extras during the installation process via npm and manually downloaded the bootstrap files. I am trying to run the "grunt build" command which should take everything in the app…
user4157770
7
votes
2 answers

changing the name of localhost web app express?

I'm working on a project, and I NEED to change the name of the project from localhost:9000 to someothername:9000, this is in my development environment, not production. I was given the project files, and the person (who is no longer here) used…
webDeverJr
  • 85
  • 1
  • 1
  • 3
5
votes
1 answer

How to replace ngAnnotate to babel-plugin-angularjs-annotate in grunt task

I am using angular js (1.6),I have following task in grunt for minification angular modules ngAnnotate: { dist: { files: [{ expand: true, cwd: '.tmp/concat/scripts', src: '*.js', dest: '.tmp/concat/scripts' }] …
5
votes
3 answers

Grunt Build: CSS not looking in right image directory

I have an angular application generated via yeoman. When I run grunt build, main.css is looking for files in the /assets/images directory, which is my project structure. The file locations are not getting changed in the css. My dist directory…
user3147424
  • 3,022
  • 5
  • 19
  • 22
5
votes
1 answer

Grunt is Running "watch" task and Waiting... forever. Is it my Gruntfile.js syntax?

In anticipation of a Sassier Bootstrap 4, I'm (trying to) switch from Less to Sass on Bootstrap 3.3.5 and setting up the required Gruntfile.js file. I had no problem compiling Less but cannot get Grunt working with Sass, specifically, $ grunt and $…
Morgan
  • 151
  • 1
  • 2
  • 7
4
votes
1 answer

Grunt stops outputting information after starting the node debug server

My problem is similar to this: Grunt won't load the node server However, the answers do not solve the problem in my case. Here is my gruntfile: 'use strict'; module.exports = function(grunt) { // Unified Watch Object var watchFiles = { …
Jay M
  • 259
  • 3
  • 15
4
votes
1 answer

How to integrate sonar for a Node JS project?

I have integrated sonarqube to my Node JS project which am working and it seems to be working fine with the javascript plugin. I would like to know if there is any way we can specifically mention sonarqube to check the javascript as Node JS? The…
Irfan Fuard
  • 41
  • 1
  • 1
  • 2
4
votes
2 answers

How to set the environment for Grunt?

I defined a task section of my Gruntfile.js for two environments -- development and production. But I don't understand, how Grunt decides, wheter to use which environment section. Gruntfile.js module.exports = function(grunt) { // Project…
3
votes
0 answers

How can I set that grunt compile all of scss to css in a folder?

I want that all scss files here:'sites/all/themes/uj/sass/*.scss' be compiled here: sites/all/themes/uj/css/*.css' The * doesn't work. Why? And what if I have other scss files in an other folder? Or my all scss files should be in the same…
Ayala
  • 107
  • 11
3
votes
1 answer

Grunt 'grunt-bower-concat', ignoring mainFiles option

Well met! For the past hours I have been trying to get the mainFiles option to work, but it seems to ignore every file that I include in there. I have tried multiple plugins in the list- but none of them get through. I am rather new with Grunt,…
Nickvda
  • 1,585
  • 1
  • 16
  • 27
3
votes
1 answer

How to load a task using loadNpmTask in gruntfile if module is in different directory

Trying to load module: grunt.loadNpmTasks('grunt-express-server'); from an external directory. Get an error: task .... does not exist. Have you loaded it? Directory structure: client/ node_modules gruntfile dev_server/ node_modules/ …
raneshu
  • 363
  • 2
  • 16
  • 46
3
votes
3 answers

appending text to multiple files using grunt-file-append

How to append text to multiple files using grunt-file-append https://www.npmjs.com/package/grunt-file-append grunt.initConfig({ file_append: { default_options: { files: [ { append: "text to append", prepend:…
patz
  • 1,306
  • 4
  • 25
  • 42
2
votes
0 answers

[gruntjs]How to update ES6 import statements in uglify section of Gruntfile.js

module.exports = function(grunt){ grunt.initConfig({ uglify: { 'minify-each':{ options : { beautify: false, mangle: false, sourceMap: true, …
2
votes
1 answer

Gruntfile.js Warning: The "path" argument must be of type string. Received type object Use --force to continue

I'm having an issue with running a grunt copy task. I've a library specified in package.json under dependencies as below "@tarekraafat/autocomplete.js": "^7.2.0" and declared copy tasks in Gruntfile.js as below var paths = { webroot:…
MSRS
  • 803
  • 7
  • 20
1
2 3 4 5 6 7