opal-webpack-loader 0.8.7 → 0.8.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bea86452f39ecdabf13c4b301b2593a5f7c95d8fb1869d5da0aeff75d60cd195
|
4
|
+
data.tar.gz: 2b6d29a971da82914d2a92520bc5fade0d3436ffc0fc3cc0d59f8a7445d27d11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37103b5030a63091eed19db90605c9f5307c2f00bcc8af5e0fc9a596201c3b9ee8f209b8afdc6104fbd179fc17fb522c262fbb4a3addd02526efd29302d0c072
|
7
|
+
data.tar.gz: 4ed3753886bc1646d18caf4e0b2f082d7ce14c787ac9c2318b1a5236173095220a6d8a7ec7b75394123a7a54b8ba7f53ad8e50121d4a165cda6cf1289316b51b
|
@@ -41,7 +41,8 @@ module OpalWebpackLoader
|
|
41
41
|
@opal_directory = 'isomorfeus'
|
42
42
|
@styles_directory = File.join(@opal_directory, 'styles')
|
43
43
|
@webpack_config_directory = 'webpack'
|
44
|
-
@
|
44
|
+
@dev_default_targets = 'browser'
|
45
|
+
@pro_default_targets = 'browser, ssr'
|
45
46
|
@hmr_hook = 'Opal.Isomorfeus.$force_render()'
|
46
47
|
create_directory(@webpack_config_directory)
|
47
48
|
create_directory(@asset_output_directory)
|
@@ -82,7 +83,8 @@ module OpalWebpackLoader
|
|
82
83
|
@opal_directory = options[:opal_name]
|
83
84
|
@styles_directory = 'styles'
|
84
85
|
@webpack_config_directory = 'webpack'
|
85
|
-
@
|
86
|
+
@dev_default_targets = 'browser'
|
87
|
+
@pro_default_targets = 'browser'
|
86
88
|
@hmr_hook = ''
|
87
89
|
create_common_directories
|
88
90
|
install_common_things
|
@@ -127,7 +129,8 @@ module OpalWebpackLoader
|
|
127
129
|
@opal_directory = File.join('app', options[:opal_name])
|
128
130
|
@styles_directory = File.join('app', 'assets', 'stylesheets')
|
129
131
|
@webpack_config_directory = File.join('config', 'webpack')
|
130
|
-
@
|
132
|
+
@dev_default_targets = 'browser'
|
133
|
+
@pro_default_targets = 'browser'
|
131
134
|
@hmr_hook = ''
|
132
135
|
create_directory('app')
|
133
136
|
create_common_directories
|
@@ -172,7 +175,8 @@ module OpalWebpackLoader
|
|
172
175
|
@opal_directory = File.join('app', options[:opal_name])
|
173
176
|
@styles_directory = File.join('app', 'assets', 'stylesheets')
|
174
177
|
@webpack_config_directory = File.join('config', 'webpack')
|
175
|
-
@
|
178
|
+
@dev_default_targets = 'browser'
|
179
|
+
@pro_default_targets = 'browser'
|
176
180
|
@hmr_hook = ''
|
177
181
|
create_directory('app')
|
178
182
|
create_common_directories
|
@@ -300,7 +304,7 @@ module OpalWebpackLoader
|
|
300
304
|
def install_webpack_config
|
301
305
|
erb_hash = {
|
302
306
|
asset_output_directory: File.join(@conf_rel_prefix, @asset_output_directory),
|
303
|
-
default_targets: @
|
307
|
+
default_targets: @dev_default_targets,
|
304
308
|
js_entry: File.join(@conf_rel_prefix, @js_entrypoints_directory, 'application.js'),
|
305
309
|
js_common_entry: File.join(@conf_rel_prefix, @js_entrypoints_directory, 'application_common.js'),
|
306
310
|
js_debug_entry: File.join(@conf_rel_prefix, @js_entrypoints_directory, 'application_debug.js'),
|
@@ -332,6 +336,7 @@ module OpalWebpackLoader
|
|
332
336
|
end
|
333
337
|
create_file_from_template('debug.js.erb', File.join(@webpack_config_directory, 'debug.js'), erb_hash)
|
334
338
|
create_file_from_template('development.js.erb', File.join(@webpack_config_directory, 'development.js'), erb_hash)
|
339
|
+
erb_hash[:default_targets] = @pro_default_targets
|
335
340
|
create_file_from_template('production.js.erb', File.join(@webpack_config_directory, 'production.js'), erb_hash)
|
336
341
|
end
|
337
342
|
|