Module: OpalWebpackLoader
- Defined in:
- lib/opal-webpack-loader.rb,
lib/opal-webpack-loader/version.rb,
lib/opal-webpack-loader/manifest.rb,
lib/opal-webpack-loader/pipe_server.rb,
lib/opal-webpack-loader/view_helper.rb,
lib/opal-webpack-loader/installer_cli.rb,
lib/opal-webpack-loader/compile_server.rb,
lib/opal-webpack-loader/compile_worker.rb,
lib/opal-webpack-loader/load_path_manager.rb,
lib/opal-webpack-loader/rails_view_helper.rb
Defined Under Namespace
Modules: Installer, RailsViewHelper, ViewHelper, WindowsyThings Classes: CompileServer, CompileWorker, LoadPathManager, Manifest, PipeServer
Constant Summary collapse
- VERSION =
"0.13.0"
Class Attribute Summary collapse
-
.client_asset_path ⇒ Object
Returns the value of attribute client_asset_path.
-
.manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
.use_manifest ⇒ Object
Returns the value of attribute use_manifest.
Class Method Summary collapse
Class Attribute Details
.client_asset_path ⇒ Object
Returns the value of attribute client_asset_path.
7 8 9 |
# File 'lib/opal-webpack-loader.rb', line 7 def client_asset_path @client_asset_path end |
.manifest_path ⇒ Object
Returns the value of attribute manifest_path.
8 9 10 |
# File 'lib/opal-webpack-loader.rb', line 8 def manifest_path @manifest_path end |
.use_manifest ⇒ Object
Returns the value of attribute use_manifest.
9 10 11 |
# File 'lib/opal-webpack-loader.rb', line 9 def use_manifest @use_manifest end |
Class Method Details
.application_js_path ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/opal-webpack-loader.rb', line 11 def application_js_path if OpalWebpackLoader.use_manifest asset_path = OpalWebpackLoader::Manifest.lookup_path_for("application.js") "OpalWebpackLoader.client_asset_path}#{asset_path}" else "#{OpalWebpackLoader.client_asset_path}application.js" end end |
.application_ssr_js_path ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/opal-webpack-loader.rb', line 20 def application_ssr_js_path if OpalWebpackLoader.use_manifest asset_path = OpalWebpackLoader::Manifest.lookup_path_for("application_ssr.js") "OpalWebpackLoader.client_asset_path}#{asset_path}" else "#{OpalWebpackLoader.client_asset_path}application_ssr.js" end end |