webpack_driver 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_driver/compile.rb +3 -3
- data/lib/webpack_driver/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ee447f96c0c8eb8d05386fa2245470bc244a515
|
4
|
+
data.tar.gz: b3795304a6aaacc6511434f8187663cae7673071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1e1d69effb6dd0abd4250abb3553ddec30a809f3be8bc925d19ad2a4ea7e0df50bd3773a5ae6595eca072716c93bdad497c3d2e382d9837e520e5e3894d79f1
|
7
|
+
data.tar.gz: 2aa88f20aac7acf8e7f98bd741f708895186017380217b041b1ae6bbae795779dbeaf2612143146a12f0f679a58678a89658ce174e65b0665de1b9ae96d59a95
|
@@ -26,7 +26,7 @@ module WebpackDriver
|
|
26
26
|
def write_manifest
|
27
27
|
manifest = {}
|
28
28
|
assets.each do | id, asset |
|
29
|
-
manifest[id] = asset.
|
29
|
+
manifest[id] = asset.files
|
30
30
|
end
|
31
31
|
config.manifest_file.write JSON.generate manifest
|
32
32
|
end
|
@@ -34,8 +34,8 @@ module WebpackDriver
|
|
34
34
|
def read_manifest
|
35
35
|
return unless config.manifest_file.exist?
|
36
36
|
manifest = JSON.parse config.manifest_file.read
|
37
|
-
manifest.each do |id,
|
38
|
-
asset = Asset.new({ 'id' => id, '
|
37
|
+
manifest.each do |id, files|
|
38
|
+
asset = Asset.new({ 'id' => id, 'files' => files })
|
39
39
|
assets[asset.id] = asset
|
40
40
|
end
|
41
41
|
end
|