Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit d822c82

Browse files
committed
Update README and example
1 parent 116ba17 commit d822c82

File tree

2 files changed

+27
-21
lines changed

2 files changed

+27
-21
lines changed

README.md

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# webmanifest loader for webpack [![Version](https://img.shields.io/npm/v/webmanifest-loader.svg)](https://www.npmjs.com/package/webmanifest-loader) [![Build Status](https://img.shields.io/travis/unindented/webmanifest-loader.svg)](https://travis-ci.org/unindented/webmanifest-loader)
22

3-
Parses your [web app manifest](https://www.w3.org/TR/appmanifest/), loading the necessary files from your `icons` and `screenshots` sections, and respecting your `publicPath` configuration.
3+
Parses your [web app manifest](https://www.w3.org/TR/appmanifest/), loading the necessary files from your `icons` and `screenshots` sections.
44

55
It also treats your web app manifest as a `lodash` template, so you can interpolate variables or add any other logic you need.
66

@@ -136,33 +136,37 @@ $ npm run build
136136
> example@1.0.0 build /Users/daniel/Code/webmanifest-loader/example
137137
> webpack
138138
139-
Hash: 27b5dbf60d53b893f3ee
140-
Version: webpack 3.0.0
141-
Time: 410ms
139+
Hash: 6988311fefbc63ba7777
140+
Version: webpack 4.1.1
141+
Time: 390ms
142+
Built at: 2018-3-13 20:23:05
142143
Asset Size Chunks Chunk Names
143-
manifest.webmanifest 566 bytes [emitted]
144-
icon_144x144.png 0 bytes [emitted]
145-
icon_192x192.png 0 bytes [emitted]
146-
screenshot.jpg 0 bytes [emitted]
144+
manifest.webmanifest 586 bytes [emitted]
147145
screenshot@2x.jpg 0 bytes [emitted]
148-
app.js 2.5 kB 0 [emitted] app
149-
index.html 344 bytes [emitted]
146+
screenshot.jpg 0 bytes [emitted]
147+
icon_192x192.png 0 bytes [emitted]
148+
icon_144x144.png 0 bytes [emitted]
149+
app.js 571 bytes 0 [emitted] app
150+
index.html 354 bytes [emitted]
151+
Entrypoint app = app.js
150152
[0] ./index.js 22 bytes {0} [built]
151153
Child html-webpack-plugin for "index.html":
152154
Asset Size Chunks Chunk Names
153-
manifest.webmanifest 566 bytes [emitted]
154-
icon_144x144.png 0 bytes [emitted]
155-
icon_192x192.png 0 bytes [emitted]
156-
screenshot.jpg 0 bytes [emitted]
155+
manifest.webmanifest 586 bytes [emitted]
157156
screenshot@2x.jpg 0 bytes [emitted]
158-
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./assets/template.ejs 779 bytes {0} [built]
157+
screenshot.jpg 0 bytes [emitted]
158+
icon_192x192.png 0 bytes [emitted]
159+
icon_144x144.png 0 bytes [emitted]
160+
+ 1 hidden asset
161+
Entrypoint undefined = index.html
162+
[0] ./assets/manifest.webmanifest 66 bytes {0} [built]
163+
[1] (webpack)/buildin/module.js 519 bytes {0} [built]
159164
[2] (webpack)/buildin/global.js 509 bytes {0} [built]
160-
[3] (webpack)/buildin/module.js 517 bytes {0} [built]
161-
[4] ./assets/manifest.webmanifest 66 bytes {0} [built]
162-
[5] ./assets/icon_144x144.png 62 bytes [built]
163-
[6] ./assets/icon_192x192.png 62 bytes [built]
164-
[7] ./assets/screenshot.jpg 60 bytes [built]
165-
[8] ./assets/screenshot@2x.jpg 63 bytes [built]
165+
[4] ./node_modules/html-webpack-plugin/lib/loader.js!./assets/template.ejs 779 bytes {0} [built]
166+
[5] ./assets/screenshot@2x.jpg 63 bytes [built]
167+
[6] ./assets/screenshot.jpg 60 bytes [built]
168+
[7] ./assets/icon_192x192.png 62 bytes [built]
169+
[8] ./assets/icon_144x144.png 62 bytes [built]
166170
+ 1 hidden module
167171
```
168172

example/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ const path = require('path')
22
const HtmlPlugin = require('html-webpack-plugin')
33

44
module.exports = {
5+
mode: 'production',
6+
57
entry: {
68
app: './index.js'
79
},

0 commit comments

Comments
 (0)