Can I Use Dart Compiled JS (JavaScript) Into Firebase Hosting For Static Website
Clash Royale CLAN TAG#URR8PPP
Can I Use Dart Compiled JS (JavaScript) Into Firebase Hosting For Static Website
I am Trying to deploy a static website with some DART Features. Before that I want to Know that Can I Use Dart Compiled JavaScript Code In it or not.
2 Answers
2
Absolutely!
In fact, you can configure your firebase.json
file to run the build for you as part of deploy.
firebase.json
"hosting":
"public": "build",
"predeploy": "rm -rf build; pub run build_runner build -o web:build --fail-on-severe --release"
See https://github.com/dart-lang/angular/tree/master/examples/hacker_news_pwa for an example.
Firebase Hosting just serves static assets (e.g. HTML, CSS, JS, images). It doesn't care what those assets are. It performs no alteration of the assets on the way to the client. You can use any web framework that serves static assets without any problems.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Always nice to see questions answered by the developers who created the frameworks in question
– Christian Scillitoe
Aug 7 at 20:14