opal-webpack-loader 0.8.5 → 0.8.6

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: b9bfab5e0fa697ff318110425f9d31c8b7778ca8f8b0459ef9aa7a6896ff2b0e
4
- data.tar.gz: 8317f60c83191b8a9089675c0fcc9bdb4049ae2b29bb1e1009c3fb88ce7c8d6e
3
+ metadata.gz: cab9638b94a850d932443331c3f339897fa9b1591c8555a0e5270416329712b5
4
+ data.tar.gz: 24b6c26b169db87b54413d02042c3f456c8f45e4b6b80758de9f1f9b82f4b9f1
5
5
  SHA512:
6
- metadata.gz: 1327659b282452073e130dba988a5722071c6ac74b65598021f8e1b2f4a55e3e527ddab6e7770a5a03d35fb298aeabbd2c3e99480fda1b3ee189a83cac97bc91
7
- data.tar.gz: c9c470768b357e3e13ff7210db09f39453595ba837bf7d96e279cfb9487f56c39dda004c4589e251d1db185e0ee4af5fbd4aa83e47e02a6a507ab8911a9ee420
6
+ metadata.gz: 80bc407b25ddbc0a872e788bbc964c10e7bea28690e130d322371066cda9f5e59bae73ecac1db5725706ee9402e6e172f40dfb1972413dcecf095bb79573fc28
7
+ data.tar.gz: 5583ae74308adb83db80391bafd438792f2b75c4e20ae4df1da79773cf1e77e8d82c866f2d9816e7c279ef331990cca8b59b794b1fdad3432f5c4188e4276a1e
@@ -41,6 +41,7 @@ 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
45
  create_directory(@webpack_config_directory)
45
46
  create_directory(@asset_output_directory)
46
47
  FileUtils.touch(File.join(@asset_output_directory, '.keep'))
@@ -80,6 +81,7 @@ module OpalWebpackLoader
80
81
  @opal_directory = options[:opal_name]
81
82
  @styles_directory = 'styles'
82
83
  @webpack_config_directory = 'webpack'
84
+ @default_targets = 'browser'
83
85
  create_common_directories
84
86
  install_common_things
85
87
  create_file_from_template('application.css.erb', File.join('styles', 'application.css'), {})
@@ -123,6 +125,7 @@ module OpalWebpackLoader
123
125
  @opal_directory = File.join('app', options[:opal_name])
124
126
  @styles_directory = File.join('app', 'assets', 'stylesheets')
125
127
  @webpack_config_directory = File.join('config', 'webpack')
128
+ @default_targets = 'browser'
126
129
  create_directory('app')
127
130
  create_common_directories
128
131
  install_common_things
@@ -166,6 +169,7 @@ module OpalWebpackLoader
166
169
  @opal_directory = File.join('app', options[:opal_name])
167
170
  @styles_directory = File.join('app', 'assets', 'stylesheets')
168
171
  @webpack_config_directory = File.join('config', 'webpack')
172
+ @default_targets = 'browser'
169
173
  create_directory('app')
170
174
  create_common_directories
171
175
  install_webpacker_config
@@ -292,7 +296,7 @@ module OpalWebpackLoader
292
296
  def install_webpack_config
293
297
  erb_hash = {
294
298
  asset_output_directory: File.join(@conf_rel_prefix, @asset_output_directory),
295
- default_targets: 'browser',
299
+ default_targets: @default_targets,
296
300
  js_entry: File.join(@conf_rel_prefix, @js_entrypoints_directory, 'application.js'),
297
301
  js_common_entry: File.join(@conf_rel_prefix, @js_entrypoints_directory, 'application_common.js'),
298
302
  js_debug_entry: File.join(@conf_rel_prefix, @js_entrypoints_directory, 'application_debug.js'),
@@ -1,3 +1,3 @@
1
1
  module OpalWebpackLoader
2
- VERSION="0.8.5"
2
+ VERSION="0.8.6"
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.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann