gruntfile is the the main configuration location for customizing grunt which is used for automating and running JavaScript tasks.
Questions tagged [gruntfile]
91 questions
2
votes
0 answers
npm install - how to avoid bowercopy dependency? And install dependencies using webpack
bowercopy is a deprecated tool for newer projects
Below task(from here) is the grunt task using bowercopy tool as dependency:
var JS_VENDOR_PATH = 'public/js/vendor',
CSS_VENDOR_PATH = 'public/css/vendor';
module.exports = function(grunt) {
…

overexchange
- 15,768
- 30
- 152
- 347
2
votes
1 answer
Where is the Syntax Error? (gruntfile.js)
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
connect: {
uses_defaults: {}
},
sass: {
dev: {
options: { sourceMap: true },
files: {…

Ayala
- 107
- 11
2
votes
1 answer
Grunt browserSync grunt-php does not reload PHP files on change
I am using Grunt + browserSync + grunt-php. The server starts normally. The problem is that whenever I make changes to PHP files, the changes are not reloaded automatically in browser. I have to manually reload the page despite having the settings…

Devner
- 6,825
- 11
- 63
- 104
2
votes
1 answer
how to deploy mean.js to production?
I have built out a yeoman generator - mean.js app
I have set up an aws ec2 linux instance, I have installed nginx as server, I have set up node as proxy server
I have set up ports
I have use grunt to build out my dist folder which includes…

amyloula
- 1,556
- 2
- 17
- 26
2
votes
0 answers
Grunt Serve:dist - Failed to load resource: the server responded with a status of 404?
Whenever I serve the output files of grunt serve:dist of my angular project which was made using yeoman, I'm getting a 404 error in the console when I come on index.html.
I had also even change the global path in my Gruntfile.js but still getting…

Yash Vekaria
- 2,285
- 24
- 24
2
votes
1 answer
Grunt cssmin / CleanCSS source map rebasing
I'm using cssmin with the following "Content" folder structure:
src
|--dir1
| |--style1.css
| |--images
| |--image1.png
|--dir2
|--style2.css
|--images
|--image2.png
dist
|--styles.min.css
|--styles.min.css.map
Where…

David Omid
- 647
- 6
- 19
2
votes
1 answer
How to debug grunt (gruntfile)?
I have a gruntfile with few tasks configured. Some of the use functions like:
middleware: (connect, options, defaultMiddleware) =>
proxy = require('grunt-connect-proxy/lib/utils').proxyRequest;
window.alert…

RobertPorter
- 542
- 6
- 16
2
votes
1 answer
Gruntfile add javascript files
I created a bootstrap-compass project with the following yeoman generator:
https://www.npmjs.com/package/generator-bootstrap-compass
You can see the file structure in the link.
How do I add the javascripts to this gruntfile correctly?
The…

herrh
- 1,328
- 1
- 16
- 33
2
votes
3 answers
Autoprefixing using Grunt + PostCSS
I'm using Sass and rather than create a mixin I'm trying to use grunt-postcss to add my vendor prefixes on my class definitions...
this is my css
@keyframes {
from { transform:scale(1); }
to { transform:scale(2); }
}
My gruntfile…

Kendall
- 5,065
- 10
- 45
- 70
1
vote
1 answer
How to use array variable properly in gruntfile.js
Trying to use a predefined array inside of a grunt file, thought using this.js_paths would work, but doesn't seem to work as I'm getting the error, "Cannot read property IndexOf of undefined" when it comes to trying to uglify the scripts. How can I…

Solomon Closson
- 6,111
- 14
- 73
- 115
1
vote
1 answer
Using glob patterns not for default Grunt keys
1. Summary
I can't set grunt-clean-console plugin, that it works for all my .html files.
2. Details
grunt-clean-console check browser console errors for .html files.
I want to check browser console errors for all .html files of my site. In official…

Саша Черных
- 2,561
- 4
- 25
- 71
1
vote
0 answers
The grunt compiles every scss except one. Why?
If I made a file, or change it, the grunt is working perfectly.
The watch task find the file, noticed the changes, and creates the css files.
Except ONE file.
This:
This is the scss:
// Import variables, abstractions, base styles and components.
//…

Ayala
- 107
- 11
1
vote
0 answers
Why my gruntfile does not compile scss files which includes "@import"?
It compiles a single scss file to css.
But if there are in that for example: "@import "variables/_colors.scss";" it is not working.
It is just a guess that this is the reason.
What is missing?
This is my gruntfile.js:
module.exports =…

Ayala
- 107
- 11
1
vote
0 answers
Gruntfile - splitting into multiple files
I am in the process of converting huge Gruntfile into multiple small script files. I am using "load-grunt-config" for that.
I have created individual files for each task and placed them in grunt folder.
Register task in…

Kalyan
- 294
- 3
- 10
1
vote
0 answers
No directives found under views folder after yo grunt server dist
hi I am using yeoman in my project and uses directives as header footer. But after grunt serve:build
Running "ngtemplates:dist" successfully but on dist folder under the views no directives are generated and I get 404 error on my directives calls…

Abhishek Mitra
- 17
- 2
- 7