Comments (10)
I am working on PR for this
from playframework.
generateJsReverseRouter := false
in build.sbt
(Fully qualified: play.sbt.routes.RoutesKeys.generateJsReverseRouter
).
from playframework.
Hmm... I realized that RoutesKeys.generateReverseRouter := false
in build.sbt
is the one I am looking for.
It disables all reverse routes as I want, nice
So, issue can be closed because this option exists already
from playframework.
Yes it is no 100% what the original request was, but the problem was solved for Roman.
Anyway, we can re-open to have a separate config to disable javascript routes.
from playframework.
Why Java equivalent for ScalaJavascriptRouting
is JavaJavascriptRouter
?
from playframework.
I did not found in documentation how to turn off generation of JavaScript routers It would be nice to have that, for decreasing of unused generated code. Example: REST client (
PlayService
) without web interface, so JavaScript routers will never be used here.
Hi, Roman! 👋 You are right, it's not possible to turn off right now. But I caught the same thoughts about this opportunity while adding Gradle support and I agree it would be nice to have the related settings. 👍
Would you be keen to provide a pull request for that feature?
from playframework.
OK, I'll try if I have free time soon. If I'm right, here are key places for editing:
The main problem is how integrate new setting into this unfamiliar code for me...
from playframework.
Perfect!
from playframework.
So, issue can be closed because this option exists already
I'm not sure that generateReverseRouter
settings and subject of this issue is equals 🤔
@mkurz Can you correct me or can I reopen this issue otherwise? 😄
from playframework.
@PromanSEW Would you mind telling me how to disable this in 3.0.2 please? It sounds like it might save some unused code generation in my purely Scala Play project? I didn't see a docs update, please forgive me if you've already documented this somewhere
from playframework.
Related Issues (20)
- play hangs on console interacton when using jblas library HOT 4
- 2.9 with Scala 2.13 not supporting pack4j 6.00 dependency :Jackson Data-bind 2.15.x
- Documentation spelling fix HOT 3
- Scala 3.3.2: class file ... is broken, reading aborted with `class java.util.NoSuchElementException` `contextual$` HOT 9
- Replace `3.0.x` with next version HOT 5
- SSL certificate for www.playframework.com is expired HOT 2
- Search in documentation does not work HOT 1
- Support for Partitioned cookie attribute (AKA CHIPS) / make cookies more flexibel HOT 1
- Asset changes in subprojects HOT 11
- Recommend Scala Metals + VSCode as an IDE on this page: https://www.playframework.com/documentation/2.9.x/IDE HOT 1
- Timeout issue when using AsyncCacheApi and custom http filter HOT 2
- [2.8.20] CVE-2023-44487 in akka-http-core HOT 1
- Support for Application Secret rotation
- play 2.9 is trying to fetch guice-6.0.0-no_aop jar, caused not found error HOT 6
- Play gradle plugin fails to create playRun task when no compileScala task found in a project
- Dependency Dashboard
- Apache Pekko doesn't support autogenerated TLS certs HOT 1
- Application secret from env variable does not work HOT 3
- UncheckedExecutionException: java.lang.IllegalStateException: Unable to load cache item HOT 12
- [UncheckedExecutionException: java.lang.IllegalStateException: Unable to load cache item] HOT 2
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 playframework.