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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e5583c547183f8e5d8cb23b0f47b02ac649203f
|
4
|
+
data.tar.gz: 9ae3f8c1fa1afd004bd3ad128bf20276a496c729
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ce7711edbf171511bedd2bbed5d5a2c55cc88ecff50fa2ca6c09a804adfcd06cb3ffb869666dcc69b873a3d62bf72751386d4062de58439281f43dec9d33307
|
7
|
+
data.tar.gz: 4ca7506857450ca4ab392741416fea6de15caff4b56eba8855051232bfd284c1dff7f96c3f7c1e66117c1b5f6a5293a948b497a23f464021c670b9c53f4756f9
|
@@ -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/'))
|
data/lib/tasks/webpack.rake
CHANGED
@@ -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
|
+
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-
|
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.
|
111
|
+
rubygems_version: 2.4.5
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Rails Plugin for webpack support
|