vite_rails 3.0.8 → 3.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -0
- data/lib/tasks/vite.rake +1 -1
- data/lib/vite_rails/tag_helpers.rb +9 -1
- data/lib/vite_rails/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5d0c675e4c826ddbaa033cb54f2e548fb0379bd84a75348e2e3459ac0c67a14
|
4
|
+
data.tar.gz: 6a16b9d34044669bbe681daa4f5b1617e80c6fd6b96a5fc18016905e30b4b855
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a369d365c6051075ce0c9eb90c5a661506b1db3317fbab9781e17804332d94f96119a21e1bff43da6cf142abdf04c5347af8f64ff8b2d3583a68ebdb85676f45
|
7
|
+
data.tar.gz: 2a568eaffe572f921a3a56af5012931d3a17cca9c991a80a8c64e8d1e128eedfc38e9a82c62170883d15f87a334793c787a392dd1fce048a28bc768a5c92754a
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,30 @@
|
|
1
|
+
## [3.0.11](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.10...vite_rails@3.0.11) (2022-08-11)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* use javascript_include_tag in vite_client_tag ([#238](https://github.com/ElMassimo/vite_ruby/issues/238)) ([3d8b366](https://github.com/ElMassimo/vite_ruby/commit/3d8b3668b2f43dacbaf09127fa67a27767e03ffe))
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
## [3.0.10](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.9...vite_rails@3.0.10) (2022-06-15)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* symbol error on rake enhance call ([#218](https://github.com/ElMassimo/vite_ruby/issues/218)) ([5507156](https://github.com/ElMassimo/vite_ruby/commit/550715624ceb39e1ea5e845e73dcaf5557caa66f))
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
## [3.0.9](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.8...vite_rails@3.0.9) (2022-04-29)
|
20
|
+
|
21
|
+
|
22
|
+
### Features
|
23
|
+
|
24
|
+
* add vite_asset_url helper ([#208](https://github.com/ElMassimo/vite_ruby/issues/208)) ([d269793](https://github.com/ElMassimo/vite_ruby/commit/d2697934b5a866ea5b14588b650a00dfe88454a3))
|
25
|
+
|
26
|
+
|
27
|
+
|
1
28
|
## [3.0.8](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.7...vite_rails@3.0.8) (2022-04-14)
|
2
29
|
|
3
30
|
|
data/lib/tasks/vite.rake
CHANGED
@@ -6,7 +6,7 @@ module ViteRails::TagHelpers
|
|
6
6
|
def vite_client_tag
|
7
7
|
return unless src = vite_manifest.vite_client_src
|
8
8
|
|
9
|
-
|
9
|
+
javascript_include_tag(src, type: 'module', extname: false)
|
10
10
|
end
|
11
11
|
|
12
12
|
# Public: Renders a script tag to enable HMR with React Refresh.
|
@@ -22,6 +22,14 @@ module ViteRails::TagHelpers
|
|
22
22
|
path_to_asset vite_manifest.path_for(name, **options)
|
23
23
|
end
|
24
24
|
|
25
|
+
# Public: Resolves the url for the specified Vite asset.
|
26
|
+
#
|
27
|
+
# Example:
|
28
|
+
# <%= vite_asset_url 'calendar.css' %> # => "https://example.com/vite/assets/calendar-1016838bab065ae1e122.css"
|
29
|
+
def vite_asset_url(name, **options)
|
30
|
+
url_to_asset vite_manifest.path_for(name, **options)
|
31
|
+
end
|
32
|
+
|
25
33
|
# Public: Renders a <script> tag for the specified Vite entrypoints.
|
26
34
|
def vite_javascript_tag(*names,
|
27
35
|
type: 'module',
|
data/lib/vite_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vite_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Máximo Mussini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -82,8 +82,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
82
82
|
licenses:
|
83
83
|
- MIT
|
84
84
|
metadata:
|
85
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.
|
86
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.
|
85
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.11/vite_rails
|
86
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.11/vite_rails/CHANGELOG.md
|
87
87
|
post_install_message:
|
88
88
|
rdoc_options: []
|
89
89
|
require_paths:
|