Questions tagged [grunt-contrib-concat]

Concatenate many files into one

Grunt task to concatenate many files into one

174 questions
0
votes
0 answers

Nodejs file globbing behaving differently in deploy environment

We have a front-end app that is compiled using grunt tasks. One of these tasks parses the dependencies from a view js file and then continues to traverse the dependency chain resulting in a list of js files that need to be included in the concat…
0
votes
0 answers

Q, amd and concatenation with grunt

I'm using AMD-like function in my project, but all js files are concatenated into one (with grunt-contrib-concat). I want Q to be concatenated as well. The problem is I can't declare Q as dependency in my other modules, cause it declares itself as…
kirilloid
  • 14,011
  • 6
  • 38
  • 52
0
votes
2 answers

Grunt not concatenating using grunt-contrib-concat

I've got the following in my Gruntfile.js: concat: { options: { // define a string to put between each file in the concatenated output separator: ';' }, dist: { // the files to concatenate src: [ …
babbaggeii
  • 7,577
  • 20
  • 64
  • 118
0
votes
0 answers

Grunt concat includes a file that it should ignore; why is it ignoring Gruntfile.js?

I have a Grunt task to concat 3x JS files into a single plugins.js file. I now no longer require one of the files (let's call it unrequired.js), so I've removed it from the list of source files in Gruntfile.js. However, whenever I run grunt concat,…
Dre
  • 2,933
  • 2
  • 18
  • 21
0
votes
1 answer

Concat specified js files and copy all the other js files to output dir

I want to concat a couple of js files I have in my src/ directory, like the ones that are needed on every page and for some specific pages that need multiple files. The rest of the files I want to copy with the current directory structure in tact.…
JelteF
  • 3,021
  • 2
  • 27
  • 35
0
votes
1 answer

Having Grunt name files and include banners with source file names via Gruntfile.js

I'm trying to set up a customized Gruntfile.js to use as a boilerplate on future projects (mostly web performance optimization tasks). The task most relevant to this question is concatenation. Here's the configuration of that task from a recent…
adam-asdf
  • 646
  • 7
  • 16
0
votes
2 answers

how to write advanced concat grunt script that find matches in seperate folders?

I need to write an advanced concat script using grunt. here is my boilerplate: ___js |____dist | |____vents | | |____commonEvents.js | | |____compare.js |____libs |____src | |____events | | |____carousel.common.js | | |____compare.js | |…
Iman Mohamadi
  • 6,552
  • 3
  • 34
  • 33
-1
votes
1 answer

Grunt js uglify fails - console Error: Unknown provider: aProvider <- a

Im pretty new and trying to build a app Its working fine Now I am trying to minify the files: Error: Unknown provider: aProvider <- a uglify: { my_target: { files: { 'app/output/output.js': [ …
Hunter
  • 1,515
  • 4
  • 15
  • 25
-1
votes
4 answers

If on a website, only one page uses a javascript file, should it be loaded on all pages?

This question has been running through my head for quite a while. If for example only the index page uses a carousel, does it make sense to include it on all the pages? For me it doesn't, but most of the WordPress plugins and themes don't take this…
Suthan Bala
  • 3,209
  • 5
  • 34
  • 59
1 2 3
11
12