middleman-webpacker 1.0.0 → 1.1.0
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 +21 -0
- data/lib/middleman-webpacker/helpers.rb +4 -0
- data/lib/middleman-webpacker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6efddebe963819bfbcaca0a954ac9eeb875d2c7
|
|
4
|
+
data.tar.gz: 302c4518a20b76e58b365279daf6bcdd4c122361
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
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.
|
|
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:
|
|
11
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: middleman-core
|