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…
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…
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: [
…
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,…
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.…
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…
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
| |…
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': [
…
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…