I need to concatenate a set files based on variables I have defined my package.json.
// package.json
...
"layouts": [
{
"page": "home",
"version": "a"
},
{
"page": "about",
"version": "a"
},
{
…
I am using grunt usemin plugin to minify my javascripts on a JSP page.
I would like to extend grunt features to achieve code similar to the one below; basically add some jsp scriptlet feature code using processhtml or template plugins so that there…
I am using grunt-contrib-concat and I need a way to automate my vendor concatenation step.
Right now, I specify manually in my GruntFile what vendor libraries should be concatenated.
Is there a way to get their names from my index.html? Using just…
As a part of my Gruntfile.js:
...
concat: {
...
js: {
src: [
'src/**/*.js'
],
dest: 'build/js/main.js',
nonull: true
}
},
...
How can I prevent concat from generating a blank main.js if my…
New to Grunt, and have been using it for the first time to combine/minify JS files for a project.
Currently have this (relevant section) in Gruntfile.js:
concat:
{
options:
{
banner: '<%= banner %>',
stripBanners: true
…
I wish to try out Grunt so for a task I have duplicated a project and want to convert it from using the default asset pipeline to work all via Grunt and it's tasks.
I can then evaluate both approaches and go for what I think turns out the best.
I…
I am adding grunt to a project and I am creating several JS files using the CONCAT task but I would like to dry up the file path rather then repeating static/js/...
concat: {
libraries: {
src: ['static/js/jquery-ui-1.9.2.custom.min.js'],
dest:…
I am new to Grunt. Whenever I have run the Grunt command it gives this warning and aborts. The warning is given below.
Loading "Gruntfile.js" tasks...ERROR
TypeError: Object # has no method 'loadNpmtasks' Warning: Task "default" not found. Use…
Previous title: "Why is Grunt's concat task not using dynamic configuration values?"
I am trying to dynamically configure the files that are concatenated by Grunt, and in doing so I came across this issue where the grunt-contrib-concat plugin does…
I'm learning grunt and it's wonderful!
background:
My project is built using SASS (.scss), and I use grunt's compass plugin to compile multiple .scss into a single .CSS on output.
problem:
I am using a jQuery plugin which has a .css file associated…
I have several json-files I want to concat, but the seperator is not inserted in the final file.
The concat part of my gruntfile:
concat: {
options: {
seperator: ','
},
dist: {
src:…
that's my first post on StackOverflow!:D I mean... ever!
Anyway... I couldn't find any clear answer to this, and maybe I'm missing something really obvious. I'm really new to Grunt as well. I'm looking for a way to merge parallel css files in two…
As part of our Grunt build we are transpiling some typescript code into a few separate files, and then concatenating the resulting javascript along with all the rest of our javascript code. Unfortunately I can't get the dynamic buildup of filenames…