在订单游戏的 pubspec.yaml 上使用 Pub Build - Minified 后,游戏的棋盘没有出现在 Chrome
After using Pub Build - Minified on the pubspec.yaml of the order game, the board of the game does not appear in Chrome
dart2js 问题
在 order 游戏的 pubspec.yaml 上使用 Pub Build - Minified 后,
棋盘未出现在 Chrome.
boarding 包使用枚举和混合。
pubspec.yaml:
name: order
version: 0.2.7
author: Dzenan Ridjanovic <dzenanr@gmail.com>
description: An example from boarding.
homepage: https://github.com/dzenanr/boarding
environment:
sdk: '>=1.0.0 <2.0.0'
documentation: http://goo.gl/kXlDOJ
dependencies:
boarding: any
browser: any
transformers:
- $dart2js:
minify: true
terse: true
commandLineOptions: [--enable-enum]
Loading source assets...
Building order...
[Info from Dart2JS]:
Compiling order|web/index.dart...
[Info from Dart2JS]:
Took 0:00:10.139580 to compile order|web/index.dart.
Built 7 files to "build".
Dart 编辑器中没有错误,Chrome。
在 index.html
中的 index.dart
脚本标记下方添加此行
<script src="packages/browser/dart.js"></script>
dart2js 问题
在 order 游戏的 pubspec.yaml 上使用 Pub Build - Minified 后, 棋盘未出现在 Chrome.
boarding 包使用枚举和混合。
pubspec.yaml:
name: order
version: 0.2.7
author: Dzenan Ridjanovic <dzenanr@gmail.com>
description: An example from boarding.
homepage: https://github.com/dzenanr/boarding
environment:
sdk: '>=1.0.0 <2.0.0'
documentation: http://goo.gl/kXlDOJ
dependencies:
boarding: any
browser: any
transformers:
- $dart2js:
minify: true
terse: true
commandLineOptions: [--enable-enum]
Loading source assets...
Building order...
[Info from Dart2JS]:
Compiling order|web/index.dart...
[Info from Dart2JS]:
Took 0:00:10.139580 to compile order|web/index.dart.
Built 7 files to "build".
Dart 编辑器中没有错误,Chrome。
在 index.html
index.dart
脚本标记下方添加此行
<script src="packages/browser/dart.js"></script>