webpack_native 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/webpack_native/railtie.rb +6 -0
- data/lib/webpack_native/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 364ab7abe793fccf23fb730c0c16ab8d3a7a53082ad611efe8668ea37f79a4f6
|
4
|
+
data.tar.gz: 36b17b11cad6492ca2b4c58b0de76e941fada353460d832af1c2fd53663f4083
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '008430165b30c2783511099bbbc208e708418836f32563e4f5104d565d059d80e573964c9912ed0f34742ece9bfe548527139cbc8970ecd79cdb347f05d906f2'
|
7
|
+
data.tar.gz: bacc4f6434cbd676016ca6f5a8a44772f8483e123e845073935f1e5347834c1f7d48eb0574ad167915dd40e373644d9d80d50f9e52a54a7bfffbc167cc4eb80c
|
@@ -9,6 +9,12 @@ class WebpackNative::Railtie < ::Rails::Railtie
|
|
9
9
|
|
10
10
|
initializer "webpack_native_set_manifest" do
|
11
11
|
if Rails.env.production?
|
12
|
+
manifest_path = "#{Rails.root}/public/webpack_native/manifest.json"
|
13
|
+
# create manifest.json file if it doesn't exist with an empty json {} to prevent raising error in WebpackNativeHelper.load_webpack_manifest if a restart of a service happen (i.e delayed_job restart) that causes rails to load
|
14
|
+
if !File.file?(manifest_path)
|
15
|
+
#FileUtils.touch
|
16
|
+
File.write manifest_path, "{}"
|
17
|
+
end
|
12
18
|
require_relative 'webpack_native_helper'
|
13
19
|
Rails.configuration.x.webpack_native.webpack_manifest_file = WebpackNative::WebpackNativeHelper.load_webpack_manifest
|
14
20
|
end
|
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.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- scratchoo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-08 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!
|