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 +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: cab9638b94a850d932443331c3f339897fa9b1591c8555a0e5270416329712b5
|
4
|
+
data.tar.gz: 24b6c26b169db87b54413d02042c3f456c8f45e4b6b80758de9f1f9b82f4b9f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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'),
|