opal-webpack-loader 0.8.6 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cab9638b94a850d932443331c3f339897fa9b1591c8555a0e5270416329712b5
4
- data.tar.gz: 24b6c26b169db87b54413d02042c3f456c8f45e4b6b80758de9f1f9b82f4b9f1
3
+ metadata.gz: f48f6fb82b8dad07287759f011fcd5531973464d1ab6e8034b735833077a52bf
4
+ data.tar.gz: d2d037b94597fac828292ae30d07f9a382c81df718f7075d344caaa1dc4e8c11
5
5
  SHA512:
6
- metadata.gz: 80bc407b25ddbc0a872e788bbc964c10e7bea28690e130d322371066cda9f5e59bae73ecac1db5725706ee9402e6e172f40dfb1972413dcecf095bb79573fc28
7
- data.tar.gz: 5583ae74308adb83db80391bafd438792f2b75c4e20ae4df1da79773cf1e77e8d82c866f2d9816e7c279ef331990cca8b59b794b1fdad3432f5c4188e4276a1e
6
+ metadata.gz: 5748642a96f34f2619ab1f6a762a4d0f5af4ff4431d7e4a1648711a7d61997506ea06d437dc8850c8d840900cb84b1adaf0223ccc560ec40fa9e69929f5c7123
7
+ data.tar.gz: 39953d24a5a1237707d3e65764b22d31395152df2f1d6b24a3d818e7a16832211a10ce257b1308cce0b3971203333dbcef078d7fc0f7bbfd0a5903422b9d3b31
@@ -42,6 +42,7 @@ module OpalWebpackLoader
42
42
  @styles_directory = File.join(@opal_directory, 'styles')
43
43
  @webpack_config_directory = 'webpack'
44
44
  @default_targets = 'browser, ssr'
45
+ @hmr_hook = 'Opal.Isomorfeus.$force_render()'
45
46
  create_directory(@webpack_config_directory)
46
47
  create_directory(@asset_output_directory)
47
48
  FileUtils.touch(File.join(@asset_output_directory, '.keep'))
@@ -82,6 +83,7 @@ module OpalWebpackLoader
82
83
  @styles_directory = 'styles'
83
84
  @webpack_config_directory = 'webpack'
84
85
  @default_targets = 'browser'
86
+ @hmr_hook = ''
85
87
  create_common_directories
86
88
  install_common_things
87
89
  create_file_from_template('application.css.erb', File.join('styles', 'application.css'), {})
@@ -126,6 +128,7 @@ module OpalWebpackLoader
126
128
  @styles_directory = File.join('app', 'assets', 'stylesheets')
127
129
  @webpack_config_directory = File.join('config', 'webpack')
128
130
  @default_targets = 'browser'
131
+ @hmr_hook = ''
129
132
  create_directory('app')
130
133
  create_common_directories
131
134
  install_common_things
@@ -170,6 +173,7 @@ module OpalWebpackLoader
170
173
  @styles_directory = File.join('app', 'assets', 'stylesheets')
171
174
  @webpack_config_directory = File.join('config', 'webpack')
172
175
  @default_targets = 'browser'
176
+ @hmr_hook = ''
173
177
  create_directory('app')
174
178
  create_common_directories
175
179
  install_webpacker_config
@@ -304,7 +308,7 @@ module OpalWebpackLoader
304
308
  js_web_worker_entry: File.join(@conf_rel_prefix, @js_entrypoints_directory, 'application_web_worker.js'),
305
309
  opal_directory: File.join(@conf_rel_prefix, @opal_directory),
306
310
  stylesheets_directory: File.join(@conf_rel_prefix, @styles_directory),
307
- hmr_hook: ''
311
+ hmr_hook: @hmr_hook
308
312
  }
309
313
  if @js_entrypoints_directory.start_with?('app')
310
314
  erb_hash[:dev_server_before] = <<~JAVASCRIPT
@@ -1,3 +1,3 @@
1
1
  module OpalWebpackLoader
2
- VERSION="0.8.6"
2
+ VERSION="0.8.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-webpack-loader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann