Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: pkg/polymer/lib/src/build/generated/messages.html

Issue 662013004: fix duplicate script issue (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review updates Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/polymer/lib/src/build/import_inliner.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <!-- 2 <!--
3 This file is autogenerated with polymer/tool/create_message_details_page.dart 3 This file is autogenerated with polymer/tool/create_message_details_page.dart
4 --> 4 -->
5 <html> 5 <html>
6 <style> 6 <style>
7 @font-face { 7 @font-face {
8 font-family: 'Montserrat'; 8 font-family: 'Montserrat';
9 font-style: normal; 9 font-style: normal;
10 font-weight: 400; 10 font-weight: 400;
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 one of its parents. This means your app probably has a flash of unstyled content 484 one of its parents. This means your app probably has a flash of unstyled content
485 before it finishes loading. See <a href="http://goo.gl/iN03Pj">http://goo.gl/iN0 3Pj</a> for more info.</p> 485 before it finishes loading. See <a href="http://goo.gl/iN03Pj">http://goo.gl/iN0 3Pj</a> for more info.</p>
486 </div><hr /> 486 </div><hr />
487 487
488 <div id="polymer_42"><h3>A css file was inlined multiple times. <a href="#polyme r_42">#42</a></h3> 488 <div id="polymer_42"><h3>A css file was inlined multiple times. <a href="#polyme r_42">#42</a></h3>
489 <p>Css files are inlined by default, but if you import the same one in multiple 489 <p>Css files are inlined by default, but if you import the same one in multiple
490 places you probably want to override this behavior to prevent duplicate code. 490 places you probably want to override this behavior to prevent duplicate code.
491 To do this, use the following pattern to update your pubspec.yaml:</p> 491 To do this, use the following pattern to update your pubspec.yaml:</p>
492 <pre><code>transformers: 492 <pre><code>transformers:
493 - polymer: 493 - polymer:
494 inline_stylesheets: 494 inline_stylesheets:
495 web/my_file.css: false 495 web/my_file.css: false
496 </code></pre> 496 </code></pre>
497 <p>If you would like to hide this warning and keep it inlined, do the same thing 497 <p>If you would like to hide this warning and keep it inlined, do the same thing
498 but assign the value to true.</p> 498 but assign the value to true.</p>
499 </div><hr />
500
501 <div id="polymer_43"><h3>"dart_support.js" not necessary <a href="#polymer_43"># 43</a></h3>
502 <p>The script <code>packages/web_components/dart_support.js</code> is still used , but you no
503 longer need to put it in your application's entrypoint.</p>
504 <p>In the past this file served two purposes:</p><ul><li>to make dart2js work we ll with the platform polyfills, and</li><li>to support registering Dart APIs for JavaScript custom elements.</li></ul>
505 <p>Now, the code from <code>dart_support.js</code> is split in two halves. The h alf for
506 dart2js is now injected by the polymer transformers automatically during <code>p ub
507 build</code>. The <code>web_components</code> package provides an HTML file cont aining the other
508 half. Developers of packages that wrap JavaScript custom elements (like
509 <code>core_elements</code> and <code>paper_elements</code>) will import that fil e directly, so
510 application developers don't have to worry about it anymore.</p>
511 </div><hr />
512
513 <div id="polymer_44"><h3>A dart script file was included more than once. <a href ="#polymer_44">#44</a></h3>
514 <p>Duplicate dart scripts often happen if you have multiple html imports that
515 include the same script. The simplest workaround for this is to move your dart
516 script to its own html file, and import that instead of the script (html imports
517 are automatically deduped).</p>
518 <p>For example:</p>
519 <pre><code>&lt;script type="application/dart" src="foo.dart"&gt;&lt;/script&gt;
520 </code></pre>
521 <p>Should turn into:</p>
522 <pre><code>&lt;link rel="import" href="foo.html"&gt;
523 </code></pre>
524 <p>And <code>foo.html</code> should look like:</p>
525 <pre><code>&lt;!DOCTYPE html&gt;
526 &lt;script type="application/dart" src="foo.dart"&gt;&lt;/script&gt;
527 </code></pre>
499 </div><hr /></body> 528 </div><hr /></body>
500 </html> 529 </html>
OLDNEW
« no previous file with comments | « no previous file | pkg/polymer/lib/src/build/import_inliner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698