middleman-webpacker 1.0.0 → 1.1.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: adfa59b40717784472840824fa064fbc97d2a0ac
4
- data.tar.gz: 592239fd7fe623e02f8454741d9fddf7df9fe3bd
3
+ metadata.gz: c6efddebe963819bfbcaca0a954ac9eeb875d2c7
4
+ data.tar.gz: 302c4518a20b76e58b365279daf6bcdd4c122361
5
5
  SHA512:
6
- metadata.gz: 7a45408ba7a24ae2037c972f6097c8298bca8a6517cce153e809e2a072da7a32e31f22704711c9dc8cbc7d7b2851aa5fc33c21a19c14b475db55f7d072963536
7
- data.tar.gz: f83fef594378fd4dd232095f285cf570346a6f0e88ebacef14045532dfe1c101c09ebd56f07e68e1d0f50fcc7672baba6e0190b6be7da57aa8c60bc3a9b30948
6
+ metadata.gz: 18e4919484d8674b8957a2c85157112c150e87aea3887df129a4de952843d90cc7e7251456d4fbcde5b93d553b4ba6ba5d8a27b0a9f69cecab675bac9bdbeb1b
7
+ data.tar.gz: 91a384ba9764441320c9fcc905595dc1d9cc705a8ac68566f41ce18938de3979c33bbc434b229dc8f592e4685bcdfa44f7c521c2691684fdbea589e9280a4386
data/README.md CHANGED
@@ -51,6 +51,27 @@ Base path where javascripts will be placed inside dist_path.
51
51
 
52
52
  Base path where images will be placed inside dist_path.
53
53
 
54
+ ### Manifest
55
+
56
+ In order for the plugin to work, you need to add the `ManifestPlugin` to the Webpack config.
57
+
58
+ Add the `webpack-manifest-plugin` package to `package.json`. Then in the Webpack config file.
59
+
60
+ ```
61
+ // Require the plugin at the top
62
+ const ManifestPlugin = require('webpack-manifest-plugin');
63
+
64
+ ...
65
+
66
+ // Add the plugin to the plugins section
67
+ plugins: [
68
+ new ManifestPlugin({
69
+ publicPath: '/',
70
+ writeToFileEmit: true
71
+ })
72
+ ]
73
+ ```
74
+
54
75
  ## Usage
55
76
 
56
77
  When activating the extension, Webpack will be used with the provided configuration. The extension is configured to have Webpack take care of all assets: Javascript, stylesheets, images and fonts.
@@ -19,6 +19,10 @@ module MiddlemanWebpacker
19
19
  asset_path(Manifest.lookup(name), **options)
20
20
  end
21
21
 
22
+ def manifest_resource_path(name)
23
+ Manifest.lookup(name)
24
+ end
25
+
22
26
  private
23
27
 
24
28
  def extension_options
@@ -1,3 +1,3 @@
1
1
  module MiddlemanWebpacker
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-webpacker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MarsBased
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-24 00:00:00.000000000 Z
11
+ date: 2018-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core