rails-webpack 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d85a5fe86ae8bdaadcd6042afbef34877cceb4a6
|
|
4
|
+
data.tar.gz: 112880e1f3ba59cd9678e39ec5347c3be4f1d1ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 099138a005ff250a6c98af2dbe199894c3a36bbbc33cca0cc1ae1670a0f9869b4061677477f465717a3e3831d45918100b141e341d4fad85cd67ac030ef00b06
|
|
7
|
+
data.tar.gz: ac58f41d6da8394679eec67e5c8c002885d9abf39be6f90523d38950d3a7d2f82e6ba3b5e2ef58263c1878b2e1212183cbccf7c094869b0d487f53d276d681df
|
|
@@ -3,7 +3,7 @@ module Webpack
|
|
|
3
3
|
source_root File.expand_path(__dir__)
|
|
4
4
|
|
|
5
5
|
def change_rails_context
|
|
6
|
-
gsub_file 'Rakefile', 'require File.expand_path(\'../config/application\', __FILE__)', '
|
|
6
|
+
gsub_file 'Rakefile', 'require File.expand_path(\'../config/application\', __FILE__)', 'require_relative \'config/environment\''
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
def init_config
|
|
@@ -3,7 +3,7 @@ webpack = (gulp, plugins, root) ->
|
|
|
3
3
|
webpack = require 'webpack'
|
|
4
4
|
stream = require 'webpack-stream'
|
|
5
5
|
named = require 'vinyl-named'
|
|
6
|
-
(
|
|
6
|
+
() ->
|
|
7
7
|
gulp.src('src/pages/**.coffee')
|
|
8
8
|
.pipe(named())
|
|
9
9
|
.pipe(stream(
|
|
@@ -22,12 +22,8 @@ webpack = (gulp, plugins, root) ->
|
|
|
22
22
|
new webpack.ResolverPlugin(
|
|
23
23
|
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('bower.json', ['main'])
|
|
24
24
|
)
|
|
25
|
-
]
|
|
26
|
-
|
|
27
|
-
throw new gutil.PluginError('webpack', err) if(err)
|
|
28
|
-
plugins.util.log('[webpack]', stats.toString())
|
|
29
|
-
callback())
|
|
30
|
-
)
|
|
25
|
+
]
|
|
26
|
+
))
|
|
31
27
|
.pipe(gulp.dest(path.join root, '../assets/compiled/'))
|
|
32
28
|
return null
|
|
33
29
|
|