playframework 2.3 - play 2.3 sbt-concat not working in prod -


i want use plugin

addsbtplugin("net.ground5hark.sbt" % "sbt-concat" % "0.1.8")

to concatenate assets.

i have 3 groups :

concat.groups := seq(   "concat_main.css" -> group(seq(     "stylesheets/bootstrap.min.css",     "stylesheets/font-awesome.css",     "stylesheets/totem/sidebar/component.css",     "stylesheets/main.min.css"   )),   "concat_main.js" -> group(seq(     "javascripts/jquery-2.1.0.min.js",     "javascripts/bootstrap.min.js",     "javascripts/totempage/sidebar/modernizr.custom.js",     "javascripts/totempage/respond.min.js",     "javascripts/totempage/html5shiv.js",     "javascripts/totempage/sidebar/classie.js",     "javascripts/main.js"   )),   "concat_noel.js" -> group(seq(     "javascripts/totempage/ouibounce-modal.js",     "javascripts/ouibounce_modal.js",     "javascripts/homepage.js",     "javascripts/totempage/jquery.cookie.js",     "javascripts/embed.js"   )) )  concat.parentdir := "public/main/javascripts"  pipelinestages in assets := seq(concat, uglify, digest, gzip) 

files generated in dev, can access

<link rel="stylesheet" href="@routes.assets.versioned("javascripts/concat_main.css")"> <script src="@routes.assets.versioned("javascripts/concat_main.js")" type="text/javascript"></script> 

but activator start have 404.

at sbt-web documentation can read that:

if have need assets produced pipelinestages in development environment (during play run), can scope pipelinestages assets config.

pipelinestages in assets := seq(mypipelinetask)

and have done setting pipelinestages key scoped assets configuration. however, works development mode. in order run pipeline in production mode have set pipelinestages key scoped global configuration. in case this:

pipelinestages := seq(concat, uglify, digest, gzip) 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -