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 +4 -4
- data/lib/opal-webpack-loader/installer_cli.rb +5 -1
- data/lib/opal-webpack-loader/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f48f6fb82b8dad07287759f011fcd5531973464d1ab6e8034b735833077a52bf
|
4
|
+
data.tar.gz: d2d037b94597fac828292ae30d07f9a382c81df718f7075d344caaa1dc4e8c11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|