Skip to content

Commit

Permalink
Include built code with the release.
Browse files Browse the repository at this point in the history
This is hopefully a temporary fix, as the stock rails/webpacker config using Uglifyjs is not able to compile code that is ES6.

Relevant issues:
rails/webpacker#395 (comment)
rails/webpacker#531
  • Loading branch information
gregawoods committed Sep 5, 2017
1 parent 960353d commit ba1b4d8
Show file tree
Hide file tree
Showing 5 changed files with 534 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules
dist/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ yarn add rails-validator
And load it in your javascript:

```javascript
import 'rails-validator'
import 'rails-validator/dist/rails-validator'
import Rails from 'rails-ujs'
Rails.start()
```
Expand Down
Loading

0 comments on commit ba1b4d8

Please sign in to comment.