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: f48f6fb82b8dad07287759f011fcd5531973464d1ab6e8034b735833077a52bf
4
- data.tar.gz: d2d037b94597fac828292ae30d07f9a382c81df718f7075d344caaa1dc4e8c11
3
+ metadata.gz: bea86452f39ecdabf13c4b301b2593a5f7c95d8fb1869d5da0aeff75d60cd195
4
+ data.tar.gz: 2b6d29a971da82914d2a92520bc5fade0d3436ffc0fc3cc0d59f8a7445d27d11
5
5
  SHA512:
6
- metadata.gz: 5748642a96f34f2619ab1f6a762a4d0f5af4ff4431d7e4a1648711a7d61997506ea06d437dc8850c8d840900cb84b1adaf0223ccc560ec40fa9e69929f5c7123
7
- data.tar.gz: 39953d24a5a1237707d3e65764b22d31395152df2f1d6b24a3d818e7a16832211a10ce257b1308cce0b3971203333dbcef078d7fc0f7bbfd0a5903422b9d3b31
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
- @default_targets = 'browser, ssr'
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
- @default_targets = 'browser'
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
- @default_targets = 'browser'
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
- @default_targets = 'browser'
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: @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
 
@@ -130,7 +130,7 @@ const ssr_config = {
130
130
  const web_worker_config = {
131
131
  target: 'webworker',
132
132
  entry: {
133
- webworker: [path.resolve(__dirname, '<%= js_web_worker_entry %>')]
133
+ web_worker: [path.resolve(__dirname, '<%= js_web_worker_entry %>')]
134
134
  }
135
135
  };
136
136
 
@@ -1,3 +1,3 @@
1
1
  module OpalWebpackLoader
2
- VERSION="0.8.7"
2
+ VERSION="0.8.8"
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.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann