repack 2.1.8 → 2.1.9
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 +4 -4
- data/README.md +4 -4
- data/example/webpack.config.js +1 -1
- data/lib/repack/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: 6677884e84af9c0696f19d04ea2094755588229f
|
4
|
+
data.tar.gz: f93813b2d957551c09090884851974f14259fdce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 `
|
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
|
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/
|
48
|
+
**This has been added to layouts/application.html.erb by default.**
|
49
49
|
|
50
50
|
### Configuration Defaults
|
51
51
|
|
data/example/webpack.config.js
CHANGED
data/lib/repack/version.rb
CHANGED