webpack-rails-react 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/generators/webpack_rails_react/install_generator.rb +5 -1
- data/lib/webpack/rails/react/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7918861b93f73c40f4f0a49ede1cdc97977e25f2
|
4
|
+
data.tar.gz: 1933e1bb7d7497cd4e9cdca0dc80a3da6605c213
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cf108b5df767de36f02494f7d58df0d7896a07cff532963704da5591e58064badd8fc7539440ae32ab31a9cb4505491180570955b7fd1cb188197502330b90c
|
7
|
+
data.tar.gz: c889babd339076d8059d6535eb98f5c3414481212b4d3d09efca03719e91657b8b3904d109684d594e8ff9365830f2f6776b9aa58d4b11c8184c562382457be8
|
data/README.md
CHANGED
@@ -70,8 +70,10 @@ Add `rake webpack:compile` to your deployment. It serves a similar purpose as Sp
|
|
70
70
|
If you're using `[chunkhash]` in your build asset filenames (which you should be, if you want to cache them in production), you'll need to persist built assets between deployments. Consider in-flight requests at the time of deployment: they'll receive paths based on the old `manifest.json`, not the new one.
|
71
71
|
|
72
72
|
## Example Apps
|
73
|
-
[basic](https://github.com/
|
74
|
-
[react-router](https://github.com/
|
73
|
+
* [basic](https://github.com/cottonwoodcoding/webpack-rails-react-basic)
|
74
|
+
* [react-router](https://github.com/cottonwoodcoding/webpack-rails-react-router)
|
75
|
+
* [redux](https://github.com/cottonwoodcoding/webpack-rails-react-redux)
|
76
|
+
* [redux react-router](https://github.com/cottonwoodcoding/webpack-rails-react-redux-router)
|
75
77
|
## TODO
|
76
78
|
|
77
79
|
* Add eslint to client
|
@@ -12,7 +12,11 @@ module WebpackRailsReact
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def copy_procfile
|
15
|
-
|
15
|
+
if File.exists? "Procfile"
|
16
|
+
append_file "Procfile", "webpack: ./node_modules/.bin/webpack-dev-server --config config/webpack.config.js"
|
17
|
+
else
|
18
|
+
copy_file "Procfile", "Procfile"
|
19
|
+
end
|
16
20
|
end
|
17
21
|
|
18
22
|
def copy_package_json
|