repack 2.1.8 → 2.1.9

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: e0fbf29669b0d2604af8912d06ddfef0cc640e84
4
- data.tar.gz: 2fe3f972d0e2f5b9c0e2935feaefe1ba209fff00
3
+ metadata.gz: 6677884e84af9c0696f19d04ea2094755588229f
4
+ data.tar.gz: f93813b2d957551c09090884851974f14259fdce
5
5
  SHA512:
6
- metadata.gz: 6e76c3cf15b07afb83f6dd622e50df20f23b91200f4d2e506399248e741f5ca00dc8d2f8d6bd0887ce83c41c25382c1c3520f2829fc7b66bbfb7fdd8382ebbac
7
- data.tar.gz: 4a46f2852a4137ab7ecad1fe9964897cd0ba1b55047e4e783d45201141ac38bda98ddf090abe067ec71753513a2bf37be9f120cf117808a0f202b211bf90abb8
6
+ metadata.gz: c0a2ac28ddf5baa0a38c06f66d89cb56828fa00e5110d4a537773d953516bbe285caf0a893e269a5be842b5a60a87fc117d6043647666ab936c2f0567fe5e29f
7
+ data.tar.gz: 1a269495b2c15dac80d1e3c888c684fd95cbd172b0a8c74164eb790c403b0a6751e402ea7aa5eca4f5841f043fd2736651a27dbeaada6b56b1e407e5df61edfd
data/README.md CHANGED
@@ -23,13 +23,13 @@ This gem has been tested against Rails 4.2 and Ruby 2.2. Earlier versions of Rai
23
23
  1. Add `repack` to your gemfile
24
24
  2. Run `bundle install` to install the gem
25
25
  3. Run `bundle exec rails generate repack:install` to copy across example files
26
- 4. Run `npm run dev_server` to start `webpack-dev-server`
26
+ 4. Run `npm run dev_server` (or `yarn run dev_server`) to start `webpack-dev-server`
27
27
  5. Add the webpack entry point to your layout (see next section)
28
28
  6. Edit `client/application.js` and write some code
29
29
 
30
30
  ### Adding the entry point to your Rails application
31
31
 
32
- To add your webpacked javascript in to your app, add the following to the `<body>` section of any layout by default it has been added to `layout.html.erb`:
32
+ To add your webpacked javascript in to your app, add the following to the `<body>` section of any layout by default it has been added to `application.html.erb`:
33
33
 
34
34
  ```erb
35
35
  <%= javascript_include_tag *webpack_asset_paths("application") %>
@@ -39,13 +39,13 @@ Take note of the splat (`*`): `webpack_asset_paths` returns an array, as one ent
39
39
 
40
40
  #### Use with webpack-dev-server live reload
41
41
 
42
- If you're using the webpack dev server's live reload feature (not the React hot reloader), you'll also need to include the following in your layout template:
42
+ If you're using the webpack dev server's live reload feature (not the React hot reloader), you'll also need the following in your layouts/application template:
43
43
 
44
44
  ``` html
45
45
  <script src="http://localhost:3808/webpack-dev-server.js"></script>
46
46
  ```
47
47
 
48
- This has been added to layouts/index.html.erb by default.
48
+ **This has been added to layouts/application.html.erb by default.**
49
49
 
50
50
  ### Configuration Defaults
51
51
 
@@ -86,7 +86,7 @@ if (production) {
86
86
  };
87
87
  config.output.publicPath = '//localhost:' + devServerPort + '/client/';
88
88
  // Source maps
89
- config.devtool = 'eval-source-map';
89
+ config.devtool = 'source-map';
90
90
  }
91
91
 
92
92
  module.exports = config;
@@ -1,3 +1,3 @@
1
1
  module Repack
2
- VERSION = "2.1.8"
2
+ VERSION = "2.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repack
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.8
4
+ version: 2.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Jungst