rails-webpack 0.4.4 → 0.5.0

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
  SHA1:
3
- metadata.gz: cdc3cc0c6ce46e7996b54db4c838490019bb1341
4
- data.tar.gz: 55c14f910824a967d564070ee7e5daad1f988f10
3
+ metadata.gz: 1e5583c547183f8e5d8cb23b0f47b02ac649203f
4
+ data.tar.gz: 9ae3f8c1fa1afd004bd3ad128bf20276a496c729
5
5
  SHA512:
6
- metadata.gz: 55efd1f06c6ffd89706e8f7a76f982648b957349225d903b2353a762aa70039078b3d637ec23c77038ce2db6d721ae4a3fa3f169f84f2d6cea840fd3a2d2aada
7
- data.tar.gz: 7cef0fbdfbe023b612d22a88522b37be336846eb2c99c3dd06d459c5dd45e2029600cba720831f6b85fdd342c7b9701aea96f6d8314ae40f60ecdc9c3d5e59be
6
+ metadata.gz: 2ce7711edbf171511bedd2bbed5d5a2c55cc88ecff50fa2ca6c09a804adfcd06cb3ffb869666dcc69b873a3d62bf72751386d4062de58439281f43dec9d33307
7
+ data.tar.gz: 4ca7506857450ca4ab392741416fea6de15caff4b56eba8855051232bfd284c1dff7f96c3f7c1e66117c1b5f6a5293a948b497a23f464021c670b9c53f4756f9
@@ -37,8 +37,8 @@ npm:
37
37
  version: '~0.13'
38
38
  - name: 'css-loader'
39
39
  version: '~0.23'
40
- - name: 'vinyl-named'
41
- version: '~1.1'
40
+ - name: 'vinyl-named-with-path'
41
+ version: '~1.0'
42
42
  - name: 'webpack'
43
43
  version: '~1.12'
44
44
  - name: 'webpack-stream'
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module Webpack
3
- VERSION = '0.4.4'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
@@ -22,7 +22,13 @@ webpack = (gulp, plugins, root) ->
22
22
  new webpack.ResolverPlugin([
23
23
  new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('package.json', ['main']),
24
24
  new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('bower.json', ['main'])
25
- ])
25
+ ]),
26
+ new webpack.optimize.CommonsChunkPlugin(
27
+ name: 'core'
28
+ filename: 'core.bundle.js'
29
+ async: true
30
+ minChunks: 2
31
+ )
26
32
  ]
27
33
  ))
28
34
  .pipe(gulp.dest(path.join root, '../assets/compiled/'))
@@ -16,6 +16,9 @@ namespace :webpack do
16
16
  thor :copy_file, 'files/src/page.common.coffee', 'app/webpack/src/pages/common.coffee'
17
17
 
18
18
  thor :gsub_file, 'config/initializers/assets.rb', /(version\s=\s)["'][0-9]+(\.[0-9]+)*["']$/, "\\1'#{Rails.application.config.webpack.version}'"
19
+ thor :append_to_file, 'config/environments/test.rb' do
20
+ 'Rails.application.config.assets.precompile += [/.*\.js/,/.*\.css/]'
21
+ end
19
22
  thor :copy_file, 'files/tasks.coffee', 'app/webpack/tasks.coffee'
20
23
  thor :copy_file, 'files/tasks/bower.coffee', 'app/webpack/tasks/bower.coffee'
21
24
  if File.exist? 'app/webpack/tasks/webpack.coffee'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-webpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeong, Jiung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-04 00:00:00.000000000 Z
11
+ date: 2016-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.4.3
111
+ rubygems_version: 2.4.5
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Rails Plugin for webpack support