Comments (5)
interesting... I didn't realize that pub build
doesn't just delete the entire build/ dir.
I assume 'built with app' means pub build
?
from dart_to_js_script_rewriter.
Yup; using pub build
meant I could see the problem in the compiled app (what I was debugging), but had a hard time because of the minification. pub build --mode=debug
built the debuggable version of the app but this transformer didn't run on the index.html file; the app didn't start.
I realized I could have worked around it by changing the foo.dart
application/dart reference to the compiled ref - foo.dart.js.
from dart_to_js_script_rewriter.
I was confused why this didn't work for you in debug mode. Then I saw this: Note that I am not using the browser packages dart.js file; I use this transformer instead.
You can leave the dart.js
file in your index.html
, because this transformer removes the dart.js
reference when you do a production build.
from dart_to_js_script_rewriter.
Yeah, I should probably just leave browser
in (perhaps move it to a dev dependency).
from dart_to_js_script_rewriter.
Yes, leave browser's dart.js in your HTML and this transformer will remove it. Or should. If it doesn't, it's a bug in this transformer.
from dart_to_js_script_rewriter.
Related Issues (16)
- Query strings in script urls aren't handled well HOT 5
- Release a 1.0 HOT 1
- " zero or multiple dart scripts" error HOT 5
- Conflicts with Angular Transformer HOT 3
- Transfer to Workiva HOT 9
- automatically add `defer` to script tags
- Update pubspec to point to new home
- Update GitHub description and web site - point to pub site HOT 1
- transformer also transforms html files in lib HOT 3
- Support subresource integrity (SRI) HOT 1
- Update dependencies to work with version 0.13.0 of the html package HOT 1
- don't think the csp option is needed anymore HOT 3
- Description on pub is malformatted
- Support swapping dev and deploy React scripts. HOT 3
- Feature Request: autoload webcomponents.js and dart_support.js for non-chrome browsers HOT 5
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 dart_to_js_script_rewriter.