Questions tagged [sbt-concat]

Plugin for the `sbt-web` asset pipeline for concatenating source files

Concatenation is often used to bundle together static web assets for more efficient delivery. sbt-concat is a plugin for the sbt-web asset pipeline for accomplishing this task.

11 questions
6
votes
1 answer

Cannot get sbt-concat to bundle styles from sbt-sass or sbt-less

(Example project provided) I cannot get sbt-concat to work as designed to find and concatenate stylesheets that result from styles that may be produced from preprocessor tasks. In my production app, I'm trying to use it to bundle select minified…
acjay
  • 28,690
  • 4
  • 51
  • 93
5
votes
1 answer

play 2.3 sbt-concat not working in prod

I want to use this plugin addSbtPlugin("net.ground5hark.sbt" % "sbt-concat" % "0.1.8") To concatenate my assets. I have 3 groups : Concat.groups := Seq( "concat_main.css" -> group(Seq( "stylesheets/bootstrap.min.css", …
Julien D
  • 1,219
  • 9
  • 20
4
votes
0 answers

Play Scala sbt-concat : grouping order

I have an issue with the sbt-concat plugin I use to group all my JS file in assets/javascripts. The problem is that it's not group in the right order. Basically, my tree looks like this…
Guigui
  • 601
  • 1
  • 8
  • 19
4
votes
1 answer

Sbt-concat support multiple bundle?

I am using sbt-concat to create bundles for JS in my application. However, it does not seem to support creating multiple bundles. In my application, I would like to create a base level js for global use. Then I also want to create a components…
JMC
  • 363
  • 1
  • 11
2
votes
0 answers

sbt-concat doesn't create groups for files in subfolders

i'm trying to create a concat group using sbt-concat in a play framework project (v2.3.8). But it doesn't work. The files in the /app/assets/ folder are concatenated successfully but any group incorporating files in subfolders doesn't work. In the…
atp
  • 21
  • 2
2
votes
2 answers

how to minify js produced by sbt-concat

I was doing my experiments using sbt-concat to combine css/js bundles. I then tried to expand my pipeline in order to do minify for my css and js. It is fairly easy to use sbt-css-compress which does minification of all the CSS produced by…
JMC
  • 363
  • 1
  • 11
1
vote
0 answers

Unable to import a scala object in build.sbt

I have a scala file called ConcatPlugin.scala in package com.mariussoutier.sbt. However when I import it in build.sbt I get error cannot resolve symbol ConcatPlugin Build.sbt import com.mariussoutier.sbt.ConcatPlugin But when I type it in it does…
user1184100
  • 6,322
  • 27
  • 74
  • 116
1
vote
0 answers

How do I integrate TypeScript, SASS and concatenation into my Play project?

Here's what I have: client-side application logic written in TypeScript my SASS stylesheets various third-party components with their own plain JS and CSS I'd like to have all that build into a single JS file and a single CSS file. I'd need to be…
Isvara
  • 3,170
  • 24
  • 40
1
vote
1 answer

Play Framework sbt-concat does not work with wildcard setting

I was trying to bundle all css under a directory and its sub-directories. However, I found that only the files under direct level of the specified directory would be bundled, but not the ones in sub-directories. Then, I tried something like this to…
JMC
  • 363
  • 1
  • 11
1
vote
1 answer

Play Framework sbt-concat work partially

I was trying to use sbt-concat plugin from https://github.com/ground5hark/sbt-concat. However, I could not make it to work with wildcard. Here is my build.sbt. name := "webapp" version := "1.0-SNAPSHOT" scalaVersion := "2.10.4" lazy val root =…
JMC
  • 363
  • 1
  • 11
0
votes
1 answer

How do I execute the sbt-web asset pipeline, specifically sbt-concat, before the tests are run?

I need a JavaScript file to exist before the tests are run. It is created using sbt-concat. How do I add the sbt-web asset pipeline as a dependency to running our spec tests?