Comments (12)
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.
@huntc - How is this different from sbt/sbt-less#25 ? ( I am just wondering based on your response)
cc - @benmccann
from sbt-web.
+1 from me (same project, different team).
from sbt-web.
I may close this issue for now given that #59 is a duplicate of it.
from sbt-web.
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.
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.
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.
I'll re-open this then
from sbt-web.
Ok, thanks.
from sbt-web.
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.
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.
@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)
- Project status ? HOT 1
- Managed ClassPath in Runtime + Scala.js causes Intellij to Perform Full Optimized Scala.js build in project load HOT 10
- Better fork of sbt-traceur
- Update for sbt 1.0.x HOT 3
- Detect production mode HOT 2
- Different settings when using `sbt run` and `sbt stage`
- How to change output path in JAR? HOT 1
- Memory leak when switching branches, testing and reloading HOT 2
- sbt-web fails under sbt 1.3.0-RC1 HOT 3
- "org.webjars.npm" % "core-js"not included in web-modules HOT 2
- Problems hooking task into asset phase
- defining a sourceGenerator from a subproject
- Migrate repository away from travis-ci.org HOT 1
- "overview of sbt-web" link is broken HOT 1
- Move sbt-web off bintray
- Travis CI dropped HOT 6
- Speeding up the incremental extraction of web jars HOT 3
- issue with downloading sbt-web from maven central HOT 2
- `sbt test` doesn't seem to update new JS files into`target/web/web-modules/test/webjars/lib/web` HOT 1
- Fix tests for Windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt-web.