sewing_kit 0.96.0 → 0.97.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/sewing_kit/version.rb +1 -1
- data/lib/sewing_kit/webpack/dev.rb +11 -3
- 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: 165ea38f784c715d991537238788162f9c3114b53e14f9dc66ddaa1dd35125a6
|
4
|
+
data.tar.gz: cac29382b343831d60f85f6c8cdfd82c40b5f885d91ae9d3d233ac121670816c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc4bbee26d0d4752bc1c65a523fbe9ff2b2bc841125a46571ad4a90217d82a4e782e6adad8bc743a8e9d1468a321dc9c8b47abb1e1afb854c9a73e892f41e648
|
7
|
+
data.tar.gz: 218818fe2e757d21e50fcdb369e28eca43b9c8b117aaf884c4428d2ba141d85171eea32836ff81a92fc0437ea3c1ba28a6fd5d34abd72b76bacc5ec6f39f1f83
|
data/README.md
CHANGED
@@ -66,7 +66,7 @@ SewingKit.configure do |config|
|
|
66
66
|
|
67
67
|
# Disable source maps (very large apps may need to builds sans source maps to
|
68
68
|
# reduce development mode's memory usage)
|
69
|
-
config.development_options[:source_maps] =
|
69
|
+
config.development_options[:source_maps] = 'off'
|
70
70
|
end
|
71
71
|
```
|
72
72
|
|
data/lib/sewing_kit/version.rb
CHANGED
@@ -83,12 +83,12 @@ module SewingKit
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def options
|
86
|
-
development_options = SewingKit.configuration.development_options
|
87
|
-
|
86
|
+
development_options = SewingKit.configuration.development_options || {}
|
87
|
+
focus = focus_sections
|
88
88
|
|
89
89
|
development_options
|
90
90
|
.reject { |key| key == :heap }
|
91
|
-
.map { |key, value| ["--#{key}", value] }.flatten
|
91
|
+
.map { |key, value| ["--#{key.to_s.tr('_', '-')}", value] }.flatten + focus.flatten
|
92
92
|
end
|
93
93
|
|
94
94
|
def log_level_from_rails
|
@@ -107,6 +107,14 @@ module SewingKit
|
|
107
107
|
def debug_mode?
|
108
108
|
!ENV['SK_DEBUG'].nil?
|
109
109
|
end
|
110
|
+
|
111
|
+
def focus_sections
|
112
|
+
return [] if ENV['SK_FOCUS'].nil?
|
113
|
+
|
114
|
+
ENV['SK_FOCUS']
|
115
|
+
.split(',')
|
116
|
+
.map { |section| ["--focus", section] }
|
117
|
+
end
|
110
118
|
end
|
111
119
|
end
|
112
120
|
end
|