I am building a project with AngularJS and I hope to use Grunt and grunt-contrib-concat (or something similar) to get all my angular components concatenated to one file.
AngularJS components need to be concatenated in order, so that files with…
I'm working on a Node.js website and I'm using Grunt to concat and minify my CSS and JS files. However, after running the grunt command I'm getting the error message:
fullPage: Fullpage.js can only be initialized once and you are doing it multiple…
I use grunt concat, each file is duplicated 11 times in the result file.
Here is my Gruntfile:
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
…
To speed up my web application load time, I wish to concatenate all my vendors (3rd party packages) javascript files. For instance, jQuery, Angular, and many bower packages.
Some packages are scoping their "use strict" and some are not. I am worried…
I am using grunt to concat two file. Grunt runs successfully and even create a file but when I open the file, I don't see anything in it. The file is absolutely empty. The contents of my "GruntFile.js" is as under:
grunt.initConfig({
pkg:…
I would like to concat into a single file
plugins.js (out of jQuery function)
fileA.js (jQuery function should start before this file)
fileB.js
...
fileZ.js (jQuery function should end after this file)
At the same time I would like to use…
I am using grunt to build my JS project. I see that the uglify plugin for grunt is capable of merging multiple JS files into a single file and uglify them. Given this feature, I am wondering if there is a need to use concat plugin at all. Can I…
I have in my Scripts folder a "Lib" folder and an "App" folder.
The Lib folder contains 3rd part library JavaScript files. Some of these are minified without the original sources, others we have the original sources for.
The App folder contains…
I am writing grunt to concatenate files dynamically, for that I have array of files in my grunt.config variable. How to use that in grunt concat.
I am writing grunt.config('jsResources', targetConfig); from dynamically text-replace function. Its…
Grunt doesn't concat and uglify my javascript files when these files are changed and changes are watched for.
If I run grunt concat the js files are concatenated as expected.
If I then run grunt uglify the files are uglified as expected.
However…
My question is in subject. I have the following config for this module:
grunt.initConfig({
coffee: {
options: {
bare: true
},
scripts: {
expand: true,
flatten: true,
cwd:…
I'm using grunt to concat(grunt-concat) and minify ( grunt-uglify ) my JS files and I've found the option for source maps which I have enabled. This now generates minification maps for the concat process and the minification process.
My question is…
I have setup grunt task to concatenate the CSS files into a combined.css file and it successfully concatenates the CSS files.
grunt.initConfig({
concat: {
options: {
separator: '\n\n\n',
base: "../../../",
…