You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 11, 2024. It is now read-only.
* due to sprockets digest method, we are forced to use a workaround to allow
"precompilation" of .dart files, see [non-stupid-digest-assets](https://github.com/alexspeller/non-stupid-digest-assets)
and [Inability to compile nondigest and digest assets breaks compatibility with bad gems #49](rails/sprockets-rails#49)
it is optionally (and automatically) available by adding `gem 'non-stupid-digest-assets', '>= 1.1', github: 'm0gg/non-stupid-digest-assets'
` to your Gemfile
* added dart_app.js to precompile list
* faced an issue with UglifyJs stackoverflowing with too large dart2js files
Copy file name to clipboardExpand all lines: README.md
+44
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,15 @@ dart-rails
2
2
==========
3
3
4
4
### Changelog
5
+
v0.2.1 - 04. Dec. 2014:
6
+
* due to sprockets digest method, we are forced to use a workaround to allow
7
+
"precompilation" of .dart files, see [non-stupid-digest-assets](https://github.com/alexspeller/non-stupid-digest-assets)
8
+
and [Inability to compile nondigest and digest assets breaks compatibility with bad gems #49](https://github.com/rails/sprockets-rails/issues/49)
9
+
it is optionally (and automatically) available by adding `gem 'non-stupid-digest-assets', '>= 1.1', github: 'm0gg/non-stupid-digest-assets'
10
+
` to your Gemfile
11
+
* added dart_app.js to precompile list
12
+
* faced an issue with UglifyJs stackoverflowing with too large dart2js files
13
+
5
14
v0.2.0 - 08. Oct. 2014:
6
15
* dart-rails can now detect changes in dart code and its dependencies
7
16
* RailsUjs call is now in the initial dart_app.dart template
@@ -74,6 +83,41 @@ For a working sample check [m0gg/dart-rails-sample](https://github.com/m0gg/dart
74
83
75
84
### Compatibility
76
85
86
+
###### UglifyJs
87
+
88
+
Don't worry if you're experiencing a
89
+
90
+
```
91
+
ExecJS::ProgramError: RangeError: Maximum call stack size exceeded
92
+
```
93
+
94
+
This is exactly what it means, a stackoverflow of UglifyJs. According to
95
+
[RangeError: Maximum call stack size exceeded #414](https://github.com/mishoo/UglifyJS2/issues/414) UglifyJs is
96
+
massivly recursive and your dart2js file might have blown it. This happened to me with an AngluarDart application.
97
+
You may simply disable UglifyJs in the environment file.
98
+
99
+
```
100
+
...
101
+
# Compress JavaScripts and CSS.
102
+
# config.assets.js_compressor = :uglifier
103
+
...
104
+
```
105
+
106
+
###### assets:precompile + native .dart files
107
+
108
+
As of rails 4 we are facing a problem for the productive environments.
109
+
See [Inability to compile nondigest and digest assets breaks compatibility with bad gems #49](https://github.com/rails/sprockets-rails/issues/49)
0 commit comments