Questions tagged as 'grunt'

0
answers

Grunt Concat Does Not Unify Files

I want to unify my css files into one, but the grunt does not unify. Works perfectly for javascript. Follows: concat: { options: { separator: '\n\n', }, css: { src: [ 'dist/app/css/*.css'...
asked by 19.06.2016 / 15:56
1
answer

Sub Gruntfile.js Inheriting node_modules from the root

I'm in a project (in laravel 4.2) where they made a mega Gruntfile.js, so I decided to organize and create a Gruntfile.js for each set of project assets. The problem: I do not want to have to give a 'npm install' for each subproject (because f...
asked by 12.02.2016 / 22:30
1
answer

How to do version control for JS, CSS, HTML, and etc file

I would like to know how to do the versioning control of my Js, CSS and HTML files, because when I upload a new version on the server, the website will cache the files. I saw that there was grunt-usemin , but I could not find any explan...
asked by 02.01.2018 / 18:36
2
answers

Error trying to minify js files in grunt

When I run the grunt uglify command this error appears. Loading "gruntfile.js" tasks...ERROR >> SyntaxError: Unexpected identifier Warning: Task "uglify" not found. Use --force to continue. Aborted due to warnings.    File gruntfil...
asked by 27.10.2017 / 03:27
1
answer

Modifying 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. However I need to change the links on my page to the minified files. For example: From: <head> <script src="js/arquivo1.js"></script>...
asked by 18.05.2016 / 21:47
1
answer

Server in gulp and grunt

I've been researching but I believe I'm not asking the right questions. I want to use gulp instead of grunt but how do I run a "grunt server" using gulp? Why the gulp watch has nothing to do with using a certain access door? My problem with g...
asked by 02.08.2015 / 16:05
2
answers

Grunt - folder node_modules outside the project

Well, I'm starting GruntJS, my node_modules folder has 50MB, so for every project, it gets bad. I would like to know if you can leave a default node_modules folder in one place to use in all projects without having to stay within the project'...
asked by 28.08.2014 / 03:14
1
answer

Automatically call bower_components in the header

I'm using bower to download and maintain the dependencies I'm going to need to use in the project. If I understood correctly I can run a bower update and update them for me. I'm having jquery, bootstrap, backbone in the bower_components folde...
asked by 15.08.2014 / 03:36
0
answers

SASS and Grunt without installing Ruby

Is there a nodejs (grunt) plugin to work with sass without having to install ruby on the machine? Today I work with grunt-contrib-sass but then I need to have the ruby on the machine for it to run, do you have any alternatives? Does anyone...
asked by 03.10.2018 / 17:03
0
answers

Clean does not work

I'm having this following problem, "clean" does not work. (It only worked the first time, as I show in the picture) He is not erasing the folder, I would like to understand what is happening. Thank you "use strict"; module.exports = fun...
asked by 07.04.2018 / 02:40