Most voted "grunt" questions
Grunt is a command-line tool that aims to automate tasks primarily for Javascript projects.
Learn more…42 questions
Sort by count of
-
25
votes2
answers4446
viewsHow to package a Node.js project into an executable?
I have a Node.js project but I need to create an executable for Windows and one for Linux, both of which still contain the built-in Node.js. I managed to do something similar in an app node-webkit…
-
10
votes1
answer2752
viewsWhat are the differences between Grunt and Gulp?
I’ve heard a lot about Grunt and Gulp, but I still don’t understand what they work for exactly. my doubts, are the following: What are they for? Is there any relationship between them? They can be…
-
6
votes2
answers433
viewsHow to deploy using Grunt?
I want to deploy via FTP using Grunt, I saw some tutorials but I don’t know how to configure the Gruntfile.js nor the task I should use to deploy and also if I need other resources to deploy, such…
-
5
votes2
answers1118
viewsOptions to generate javascript library documentation
Currently I have used much the jsdoc3 with the docstrap, however requires a large amount of third party libraries to generate documentation with node and grunt, someone knows a robust alternative…
-
5
votes1
answer2656
viewsWhat is the appropriate folder architecture to apply to a web project?
My project boils down to PHP pages, with folder for images, css, js and fonts. I’ve seen that some developers use a folder for project development and another folder for production. I would like to…
-
5
votes2
answers329
viewsTest results do not appear in browser - Grunt-karma
I’m using Grunt and karma to test my project. But when I use the Grunt test command, the results do not appear in the browser nor in the command linda. The only thing that comes up is this: This is…
-
5
votes1
answer337
viewsHow to merge a file with several other files, dynamically using Grunt?
I have a problem that I cannot solve in any way. The problem is this: I use the Grunt to automate the tasks of my projects, and in this case, I am using it as follows: As I did in the above drawing,…
-
5
votes1
answer224
viewsHow to merge into a file already minified with Grunt-contrib-uglify
Here’s the situation, I’m using the Grunt-contrib-uglify to minify my project’s javascript into a single file, the problem is that one of these files is already minified, and the uglify does not add…
-
4
votes3
answers1621
viewsIs it possible to move Nodejs modules to be used offline?
I use the GruntJS for personal projects, I would like to use the benefits of this tool at work, but the use of the network is limited and I cannot install via prompt. I tried to copy the directory…
-
4
votes1
answer133
viewsHow to livereload using Grunt for . Less files?
A SOLUÇÃO ESTÁ NA TERCEIRA PARTE JUNTO COM OS ARQUIVOS. I can do it for . htlm and . css files but not . Less. Here the full Gruntfile. Below, a snippet of the part I think matters most: watch: {…
-
4
votes1
answer87
viewsDebug with min files in Angularjs
I created a task at Grunt to automatically the concat and uglify in my files .js Angular to improve performance and also to avoid inserting a new file every time I create a controller, for example.…
-
4
votes2
answers425
viewsWhat’s the difference between "require" and "require-dev"?
In the Composer, Grunt for example, has the require and the require-dev. My question is what’s the difference between them? Example phpBB "require": { "php": ">=5.3.3,<7.0",…
-
3
votes2
answers523
viewsConcatenate . Sass files with Compass
I am trying to concatenate (unify) several . css files generated from SASS and I am using Compass to process my files. I’m using Grunt to perform some tasks, including concatenating files, but as I…
-
3
votes1
answer92
viewsBuild javascript modules, how to package files (modules)?
I’m using the require js and want to optimize the requests, reading a bit of the documentation on github, I know it is possible to set up a task in Grunt to concatenate my modules more I’m a little…
-
3
votes0
answers125
viewsProblems with Grunt tasks for versioning when html files are inside other folders
Using Grunt, I installed and configured the plugins: - grunt-contrib-copy - grunt-contrib-clean - grunt-contrib-concat - grunt-contrib-uglify - grunt-contrib-cssmin - grunt-usemin -…
-
2
votes1
answer74
viewsI cannot access website served by Grunt server from another computer on LAN
I’m trying to access my development environment served by Grunt and the site just doesn’t open. It’s like it doesn’t exist. Among other things I’m using livereload, jshint and karma but I don’t…
-
2
votes0
answers198
viewsI’m having trouble with Bower’s installation, how do I fix it?
i am having trouble with the installation of Bower, I had already installed, I even worked on some projects using "yo + Grunt + Bower" however, today when I went to create a new project I got a…
-
2
votes1
answer125
viewsWorking with javascript environments using Grunt
I have a very bad problem in my web projects, I don’t work with environments, I wanted my application to have different configuration types according to the environment, for example: in the DEV…
-
2
votes1
answer166
viewsProblem with Grunt-uncss
I wonder if it is possible to read a file . CSHTML with Grunt-uncss, because I searched and tried and so far had no results..
-
2
votes1
answer135
viewsChange path path with Grunt
I have a problem with my application. It will be all angular, but I need to know how I can change the path of my javascript according to my environment. Example: If I’m developing in the dev…
-
2
votes1
answer53
viewsGruntjs error in installing plugin using Vagrant
I try to install the puglin npm install Grunt-contrib-uglify --save-dev in my project using Vagrant and gives error permission follows below : npm ERR! Please try running this command again as…
-
1
votes2
answers61
viewsHow to remove automatic comments generated by Compass?
I write the code in SCSS, and when the CSS comes with comments where the Class or ID is in my SCSS. Does anyone know how to remove these comments generated by Compass from my CSS file?
-
1
votes1
answer62
viewsHow to Work with Grunt
I have read a lot about some tools used to facilitate the workflow on the front end and I met Grunt, I understood what his function is and when he can be useful, but I have the following question,…
-
1
votes2
answers76
viewsHow to install Grunt offline?
I’ve got the Node.js and Npm installed and wanted to know if there is a way to install Grunt and use it offline?
-
1
votes1
answer79
viewsCan I use GZIP compression on files that have been minified by Gulp or Grunt?
Can I use GZIP compression on files that have been minified by Gulp or Grunt? I wonder if there is possibility that I have problems regarding this. Or if I would have an even faster upload on the…
-
1
votes1
answer36
viewsDoubts regarding the Grunt
I’m not very experienced in javascript and wanted to know what would be a production version. I’m using the Grunt to concatenate and minify my application in order to make it smaller. The files…
-
1
votes1
answer34
viewsSub Gruntfile.js Inheriting node_modules from root
I am in a project (in Laravel 4.2) where they made a mega Gruntfile.js, ai decided to organize and create a Gruntfile.js for each set of "Assets" of projects. The Problem: I don’t want to have to…
-
1
votes0
answers22
viewsGrunt Concat Does Not Unify Files
I want to unify my css files into one, but Grunt doesn’t unify. It works perfectly for javascript. Follows: concat: { options: { separator: '\n\n', }, css: { src: [ 'dist/app/css/*.css' ,…
-
1
votes0
answers50
viewsError when executing Grunt command
so people installed Grunt here and when I run the Grunt command appears this unglify targets found error Warning: task "unglify" failed. use --force to continue my gruntfile.js is so module.exports…
-
1
votes0
answers38
viewsUse Grunt watch in different directories within the same project and at the same time
Fala Galera. I’m not an expert on Grunt, but I turn around and currently work with Grunt running in a more conventional structure, where files of the same length are in the same folder, for example:…
gruntasked 7 years, 8 months ago Luiz Ricardo 11 -
1
votes0
answers65
viewsGrunt watch does not detect new images
Hello, I’m trying to make Grunt watch a directory and when a new image is added, it compresses it. However, it does not perform anything when adding images in the directory, it works perfectly for…
-
1
votes0
answers29
viewsGrunt creating wrong files
I’m using the grunt-hogan, in the Gruntfile is these definitions. "use strict"; module.exports = function(grunt) { var config; config = { hogan: { tmp: 'template.html', output:…
-
0
votes1
answer46
viewsAutomatically call bower_components in header
I’m using Watt to download and maintain the dependencies I’ll need to use in the project. If I understand correctly I can run a Power update and will update them for me. I’m with jquery, bootstrap,…
-
0
votes2
answers2482
viewsGrunt - node_modules folder outside the project
Guys, I’m starting in Gruntjs, my folder node_modules has 50MB, that for each project, it gets bad. I wonder if you have how to leave a standard node_modules folder in one place to use in all…
-
0
votes1
answer184
viewsServer in Gulp and Grunt
I’ve been doing some research, but I don’t think I’m asking the right questions. I want to use Gulp instead of Grunt but how do I run a "Grunt server" using Gulp? Because Gulp’s watch has nothing to…
-
0
votes1
answer69
viewsHow to take values from a JSON and pass as SASS variables with Grunt
I need to compile templates using Grunt and I want to put the color settings inside a JSON file that will be inside each layout folder, that is, I need to use Grunt to read JSON and pass the values…
-
0
votes1
answer1035
viewsHow to make version control for JS file, CSS, HTML and etc
I would like to know how to control the versioning of my Js, CSS and HTML files, because when I upload a new version to the server, the website is cached. I saw that there is the grunt-usemin, but I…
-
0
votes1
answer62
viewsModify css/js links with Grunt after concatenating and minifying
I’m using Grunt in my project, I can concatenate them and minify them as desired. But I need to change the links from my page to the minified files. For example: Of: <head> <script…
-
0
votes1
answer98
viewsError when compiling Foundation 6 SASS/SCSS with Grunt
I’m trying to install and compile Foundation 6 via SASS. Well, the installation via NPM I managed to do correctly according to the instruction on the site:…
-
0
votes2
answers79
viewsError trying to minify js files in Grunt
When I execute the command Grunt uglify this error appears. Loading "gruntfile.js" tasks...ERROR >> SyntaxError: Unexpected identifier Warning: Task "uglify" not found. Use --force to…
-
0
votes0
answers27
viewsCwd in Grunt + Babel
Personal talk, I am using Grunt + Babel to compile my code, it turns out that my folders are organized as follows: - pasta1 - amd -src - arquivo.js - pasta2 - amd -src - arquivo.js - pasta3…
-
0
votes0
answers73
viewsGRUNT CSS-MIN does not process with @import inline
Hello, I am building an html page where I merge js files using Grunt and the modules Grunt-usemin Grunt-contrib-uglify Grunt-contrib-Concat to compress the js using the following structure <!--…