webpack_native 0.3.4 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bae1d84ac86e83ef247ba78c99dd443784d4f153f9068605ccc14434a7cf3a39
4
- data.tar.gz: 9b3c19d6815e6b5c3338867c6be132dbcd7ee84ee4f9c87358d8162a6da9a3c1
3
+ metadata.gz: 424ff35c639d4bee63718a652cc6c469dcf41df2bf8be43c1ca2c8b4dd447ff4
4
+ data.tar.gz: c8315b80b06f863d885c6456382925bf7e384b88d8720543ecf3d4d242bd6032
5
5
  SHA512:
6
- metadata.gz: 6706cf0ae3fa842b3e1c4f2cf53b287641e86de3ffe93c789c70dc50257f7f9c279f494a4d030c87c6daeebd753c1ec439f37f39a4dbf7b7e652b2a48be12ad2
7
- data.tar.gz: bb6aa8c0cb6c0c0531f12e1c67f5c9421d2e9093214204490cb89d0c431a2400051e70cc74ebc956ddebd59b8315cbe3d68f7e007eed79353f542b5055564c34
6
+ metadata.gz: 14d18d8d5ebca6d15050a5f195a9563dad64ae1b6a4d097bed29812f29aa6b740af16c27250fa04673e7e0d873441a004eadf9865374b5bbdcb92b288ce3ff71
7
+ data.tar.gz: 85474365d6ffc853695abeff0690eeae4e80f7d9b0d1e79d9e2924aed2a47b013fe6961bd2ac332ebab4a8aad07be3e910773f6df5b711956eaa60a7f48db48b
@@ -6,6 +6,7 @@ class WebpackNative::ProdGenerator < Rails::Generators::Base
6
6
 
7
7
  Mutex.new.synchronize do
8
8
  Dir.chdir "#{Rails.root}/app/webpack_native" do
9
+ %x{ yarn install }
9
10
  result = %x{ npm run build:prod }
10
11
  puts "\n"
11
12
  puts result
@@ -26,7 +26,7 @@ class WebpackNative::Railtie < ::Rails::Railtie
26
26
 
27
27
  initializer "run_webpack_build_cmd" do
28
28
  config.after_initialize do
29
- if defined?(Rails::Server)
29
+ if defined?(Rails::Server) && Rails.env.development?
30
30
  Thread.new { start_webpack }
31
31
  end
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module WebpackNative
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webpack_native
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - scratchoo