Questions tagged [grunt-contrib-concat]

Concatenate many files into one

Grunt task to concatenate many files into one

174 questions
4
votes
1 answer

ENOTSUP using Grunt

I'm using Grunt to minify and concatenate files for an AngularJS web application. Our source is on a file share and I'm connecting to it via a mapped drive. Whenever Grunt runs over my source directory, I get an error on one of my concat tasks. …
4
votes
4 answers

How to make grunt not minify certain js files

My grunt script generated by yeoman concats and minifies js files through useminPrepare, concat, and uglifyjs. This is working great, but there is one js script that I do not want it to minify. How do I specify that in the grunt file?
Hisham
  • 1,305
  • 2
  • 15
  • 25
3
votes
2 answers

How to uglify an angular project using grunt?

I'm trying to deploy a meanjs project but can't seem to figure out how to minify,concat&uglify the project using grunt. What I've found out so far : Need to run concat -> ngAnnotate -> uglify (else code won't run) need to concat in dependency order…
Daniel
  • 131
  • 1
  • 1
  • 7
3
votes
0 answers

Error: ENOENT in Grunt uglify task

I have the following gruntfile.js. Using grunt-contrib-concat and grunt-contrib-uglify together. This is an extention of a developement asked @Dynamic Mapping and Concat with Grunt Uglify I use banner in the uglify task to reference a file created…
fidev
  • 1,222
  • 2
  • 21
  • 51
3
votes
0 answers

Typescript debugging with concatenated js files

We use this setting in development: we develop our angular project in typescript using IntelliJ IDEA transpile our typescript code to javascript with grunt-ts concatenate all transpiled javascript files to one singe all.js file using…
3
votes
1 answer

Running tasks sequentially in Grunt

I was under the impression that in grunt.registerTask(taskName, taskList) the taskList would run sequentially (i.e. one completes before moving onto the next). I guess that is not the case? Given this task: grunt.registerTask('local-debug', [ …
mrshickadance
  • 1,213
  • 4
  • 20
  • 34
3
votes
0 answers

Is it possible to pass a sourcemaps to grunt-ng-annotate?

I am concatenating some files that then get passed to ng-annotate and then minified. Is there a way to pass a sourcemap to grunt-ng-annotate?
Subtubes
  • 15,851
  • 22
  • 70
  • 105
3
votes
2 answers

grunt doesnot reload server on watch livereload

I have been trying to reload the server if the any of the file changes. I can watch the files which has been changed but it does not reload my server. GruntFile.js module.exports = function(grunt){ grunt.initConfig({ pkg:…
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
3
votes
1 answer

How can I concatenate all JS files in a folder?

I have a main app folder with many subfolders, each with their own subfolders, etc, which along the way contain .js files. I want to create a grunt task that concatenates all the .js files anywhere under this main top level folder, which is called…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
3
votes
0 answers

trying to run grunt tasks for development and prod mode does not run the default task

I have two modes i.e production and development modes for js and css minification in prod mode and only concat in dev mode. I have multiple tasks for this and i have set the default mode to development for some reason, grunt fails saying task…
3
votes
1 answer

Debug concat/minified files with Grunt

I'm using grunt concat/uglify to reduce the number of calls being made to load JavaScript. I removed all the hard-coded links to the actual javascript files, and now reference the one javascript file produced by grunt. how can I continue to…
NullHypothesis
  • 4,286
  • 6
  • 37
  • 79
3
votes
0 answers

How to use grunt-contrib-concat with remote files?

I am new to Grunt and I am creating my first build / deploy task. I currently can use grunt to concat and uglify local CSS and JS resources, but I can't seem to find a way to get this to work with remote resources (either over the internet or on…
Joshua Barker
  • 987
  • 2
  • 11
  • 23
3
votes
1 answer

Grunt concat html and js with different separators?

Currently I am concatenating my Javascript files using grunt and grunt-contrib-concat as follows: concat: { options: { separator: ';' }, js: { src: [ '...' ], dest: 'main.js', nonull:…
Adam Marshall
  • 3,010
  • 9
  • 42
  • 80
3
votes
1 answer

Grunt files set nonull to true by default

I used grunt-contrib-concat alot and wondered why some files were not concatenated. I found out it was a small typo. Anyway, I've got a lot of different files with different destinations. grunt.initConfig({ concat: { js: { files: [ …
dan-lee
  • 14,365
  • 5
  • 52
  • 77
1
2
3
11 12