webpack_native 0.5.5 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/webpack_native/dev_generator.rb +0 -0
- data/lib/generators/webpack_native/install_generator.rb +3 -0
- data/lib/generators/webpack_native/prod_generator.rb +0 -0
- data/lib/generators/webpack_native/templates/webpack_native/package.json +2 -2
- data/lib/generators/webpack_native/templates/webpack_native/src/javascripts/application.js +0 -0
- data/lib/generators/webpack_native/templates/webpack_native/src/stylesheets/application.scss +0 -0
- data/lib/generators/webpack_native/templates/webpack_native/webpack.config.js +0 -0
- data/lib/webpack_native/railtie.rb +4 -1
- data/lib/webpack_native/runner.rb +0 -0
- data/lib/webpack_native/version.rb +1 -1
- data/lib/webpack_native/webpack_native_helper.rb +5 -2
- data/lib/webpack_native.rb +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02babb9733588c9d4d71058690cf315df2aa9c32839e23a6f591bacb786875fb
|
4
|
+
data.tar.gz: d717549903b0c58b6d92762318a31e09a74c51e17510b38e94bf5fd4efd8e606
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34da4a1ab8e65a7a1f4f0e7dba95bad8883477947b50fcd5ee8e1c716e4d8a575f283057ee2048fadf87a80b1416fc2558f7ce87ce560529b46ef5b763fa9004
|
7
|
+
data.tar.gz: 788b4c66b4459cc4a5e99c0ffe4dfa05af4824437e3ff91777556cfec57eceaddaea732fc8449fdbf164bb926489c18a5f5f0499a2ffe37f59c3dbd8bb954edd
|
File without changes
|
@@ -13,6 +13,9 @@ class WebpackNative::InstallGenerator < Rails::Generators::Base
|
|
13
13
|
# Not sure but using the gem from rubygems... seems like the "images" directory isn't created when this generator runs, in the meantime let's add it (once again maybe?)
|
14
14
|
images_directory = 'app/webpack_native/src/images'
|
15
15
|
empty_directory(images_directory) unless Dir.exist?(images_directory)
|
16
|
+
|
17
|
+
favicons_directory = 'app/webpack_native/src/favicons'
|
18
|
+
empty_directory(favicons_directory) unless Dir.exist?(favicons_directory)
|
16
19
|
end
|
17
20
|
|
18
21
|
# (2) insert necessary helpers in the layouts/application.html.erb to render the <link> and <javascript> tags
|
File without changes
|
@@ -21,10 +21,10 @@
|
|
21
21
|
"css-loader": "^4.3.0",
|
22
22
|
"file-loader": "^6.1.0",
|
23
23
|
"mini-css-extract-plugin": "^0.11.2",
|
24
|
-
"node-sass": "^4.14.1",
|
25
24
|
"optimize-css-assets-webpack-plugin": "^5.0.4",
|
26
25
|
"postcss-loader": "^4.0.2",
|
27
|
-
"sass
|
26
|
+
"sass": "^1.51.0",
|
27
|
+
"sass-loader": "^10.2.1",
|
28
28
|
"url-loader": "^4.1.0",
|
29
29
|
"webpack": "^4.44.2",
|
30
30
|
"webpack-cli": "^3.3.12",
|
File without changes
|
data/lib/generators/webpack_native/templates/webpack_native/src/stylesheets/application.scss
CHANGED
File without changes
|
File without changes
|
@@ -56,7 +56,10 @@ class WebpackNative::Railtie < ::Rails::Railtie
|
|
56
56
|
initializer "run_webpack_build_cmd" do
|
57
57
|
config.after_initialize do
|
58
58
|
if defined?(Rails::Server) && Rails.env.development?
|
59
|
-
|
59
|
+
# starting this in new thread is causing bug in ruby 3.0.2
|
60
|
+
# conflicting chdir during another chdir block
|
61
|
+
#Thread.new { start_webpack }
|
62
|
+
fork { start_webpack }
|
60
63
|
end
|
61
64
|
end
|
62
65
|
end
|
File without changes
|
@@ -5,7 +5,9 @@ module WebpackNative::WebpackNativeHelper
|
|
5
5
|
href: webpack_stylesheet_path(asset),
|
6
6
|
rel: "stylesheet"
|
7
7
|
)
|
8
|
-
tag.link(
|
8
|
+
#tag.link is not working correctly on (Rails 6.1.4.1 + ruby3)
|
9
|
+
#tag.link(html_options).html_safe
|
10
|
+
content_tag("link".freeze, nil, html_options).html_safe
|
9
11
|
end
|
10
12
|
|
11
13
|
def webpack_stylesheet_path(asset, **options)
|
@@ -94,7 +96,8 @@ module WebpackNative::WebpackNativeHelper
|
|
94
96
|
|
95
97
|
end
|
96
98
|
|
97
|
-
tags << tag.link(html_options)
|
99
|
+
# tags << tag.link(html_options)
|
100
|
+
tags << content_tag("link".freeze, nil, html_options)
|
98
101
|
|
99
102
|
end
|
100
103
|
|
data/lib/webpack_native.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webpack_native
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- scratchoo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Use vanilla webpack to manage your assets efficiently, no webpacker or
|
14
14
|
asset pipeline anymore!
|
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '0'
|
51
51
|
requirements: []
|
52
|
-
rubygems_version: 3.
|
52
|
+
rubygems_version: 3.2.22
|
53
53
|
signing_key:
|
54
54
|
specification_version: 4
|
55
55
|
summary: Vanilla Webpack For Rails Applications
|