Giter VIP home page Giter VIP logo

Comments (12)

huntc avatar huntc commented on September 7, 2024

What you're describing sounds like a problem ie we should be able to achieve what you're looking for. Note though that ~run isn't necessary for Play.

I shall investigate.

from sbt-web.

 avatar commented on September 7, 2024

@huntc - How is this different from sbt/sbt-less#25 ? ( I am just wondering based on your response)
cc - @benmccann

from sbt-web.

magro avatar magro commented on September 7, 2024

+1 from me (same project, different team).

from sbt-web.

huntc avatar huntc commented on September 7, 2024

I may close this issue for now given that #59 is a duplicate of it.

from sbt-web.

magro avatar magro commented on September 7, 2024

What about processing of the .styl files in app/assets? Will this happen without causing the application to reload? We probably should submit a separate issue that covers the processing/compilation of source files without F5, right?

from sbt-web.

huntc avatar huntc commented on September 7, 2024

I think that the issue being reported here is a general one with Play. If things are resolved for one plugin then all will benefit.

from sbt-web.

magro avatar magro commented on September 7, 2024

To get it right: that changing a .styl file (or s.th. similar in app/assets/) does not trigger the recompilation should be reported as playframework issue? I think this was the main point of this issue here, and #59 was only about the reload triggered by static files in public/.

from sbt-web.

huntc avatar huntc commented on September 7, 2024

I'll re-open this then

from sbt-web.

magro avatar magro commented on September 7, 2024

Ok, thanks.

from sbt-web.

shkhln avatar shkhln commented on September 7, 2024

This should be easy to implement (it should be sufficient to change compile in Compile to playAssetsWithCompilation at https://github.com/playframework/playframework/blob/master/framework/src/sbt-plugin/src/main/scala/PlayRun.scala#L236), but I wonder if there are valid reasons for excluding assets compilation out of ~run loop. It's not clear to me if that was a deliberate decision or not.

from sbt-web.

benmccann avatar benmccann commented on September 7, 2024

It would be nice if it were more configurable. I think that some folks want certain asset processing to happen in dev mode while others want none and the processing you want in dev is often different than what you want in prod. It seems like it'd be nice to have scopes for DevAssets, TestAssets, ProdAssets.

from sbt-web.

huntc avatar huntc commented on September 7, 2024

@benmccann Right now we have the following:

pipelineStages in Assets := Seq(...

which is distinct from:

pipelineStages := Seq(...

The former will execute only for dev mode, the latter will include the former and execute for prod mode.

Is that satisfactory?

from sbt-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.