Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

v3.8.0

Latest
Compare
Choose a tag to compare
@mmiller42 mmiller42 released this 04 May 23:16
· 8 commits to master since this release

This is a summary of the differences between v3.8.0 and v3.7.0.

Commits

Show commits
SHA Author Committed Message
447ad29 mmiller42 2018-2-17 improve formatting
ebffd34 mmiller42 2018-2-17 improve formatting
aaf3060 mmiller42 2018-2-17 indentation with some special space characters
cd77258 mmiller42 2018-5-4 use externals array so that external modules that do not contain globals don't throw webpack config errors
e574a0a mmiller42 2018-5-4 remove greenkeeper
03cbbb3 mmiller42 2018-5-4 3.8.0

Changed files

Show changed files

.circleci/config.yml

@@ -15,9 +15,6 @@ jobs:
             npm install npm@latest --no-save &&
             sudo rm -rf /usr/local/lib/node_modules/npm &&
             sudo mv node_modules/npm /usr/local/lib/node_modules/npm
-      - run:
-          name: Install greenkeeper-lockfile
-          command: sudo npm install -g greenkeeper-lockfile@1
       - restore_cache:
           key: dependency-cache-{{ checksum "package.json" }}
       - run:
@@ -33,12 +30,6 @@ jobs:
       - run:
           name: Test
           command: npm test
-      - run:
-          name: Update lockfile
-          command: greenkeeper-lockfile-update
-      - run:
-          name: Upload lockfile
-          command: greenkeeper-lockfile-upload
       - deploy:
           name: Publish
           command: |

README.md

@@ -1,4 +1,4 @@
-# html-webpack-externals-plugin [![CircleCI](https://circleci.com/gh/mmiller42/html-webpack-externals-plugin.svg?style=svg)](https://circleci.com/gh/mmiller42/html-webpack-externals-plugin) [![Greenkeeper badge](https://badges.greenkeeper.io/mmiller42/html-webpack-externals-plugin.svg)](https://greenkeeper.io/)
+# html-webpack-externals-plugin [![CircleCI](https://circleci.com/gh/mmiller42/html-webpack-externals-plugin.svg?style=svg)](https://circleci.com/gh/mmiller42/html-webpack-externals-plugin)
 
 Webpack plugin that works alongside [`html-webpack-plugin`](https://github.com/jantimon/html-webpack-plugin) to use pre-packaged vendor bundles.
 
@@ -46,12 +46,12 @@ The constructor takes a configuration object with the following properties.
 | `externals[].entry` | string \| array&lt;string&gt; \| object \| array&lt;object \| string&gt; | The path, relative to the vendor module directory, to its pre-bundled distro file. e.g. for React, use `dist/react.js`, since the file exists at `node_modules/react/dist/react.js`. Specify an array if there are multiple CSS/JS files to inject. To use a CDN instead, simply use a fully qualified URL beginning with `http://`, `https://`, or `//`.<br><br>For entries whose type (JS or CSS) cannot be inferred by file extension, pass an object such as `{ path: 'https://some/url', type: 'css' }` (or `type: 'js'`). | *None* |
 | `externals[].entry.path` | string | If entry is an object, the path to the asset. | *None* |
 | `externals[].entry.type` | `'js'`\|`'css'` | The asset type, if it cannot be inferred. | *Inferred by extension when possible* |
-| `externals[].entry.cwpPatternConfig` | object | The properties to set on the [`copy-webpack-plugin` pattern object](https://github.com/webpack-contrib/copy-webpack-plugin#patterns). This object is merged in with the default `from` and `to` properties which are generated by the externals plugin. | `{}` |
-| `externals[].entry.attributes` | object.&lt;string,string&gt; | Additional attributes to add to the injected tag. | `{}` |
+| `externals[].entry`<br>`  .cwpPatternConfig` | object | The properties to set on the [`copy-webpack-plugin` pattern object](https://github.com/webpack-contrib/copy-webpack-plugin#patterns). This object is merged in with the default `from` and `to` properties which are generated by the externals plugin. | `{}` |
+| `externals[].entry`<br>`  .attributes` | object.&lt;string,string&gt; | Additional attributes to add to the injected tag. | `{}` |
 | `externals[].global` | string \| null | For JavaScript modules, this is the name of the object globally exported by the vendor's dist file. e.g. for React, use `React`, since `react.js` creates a `window.React` global. For modules without an export (such as CSS), omit this property or use `null`. | `null` |
 | `externals[].supplements` | array&lt;string&gt; \| array&lt;object&gt; | For modules that require additional resources, specify globs of files to copy over to the output. e.g. for Bootstrap CSS, use `['dist/fonts/']`, since Glyphicon fonts are referenced in the CSS and exist at `node_modules/bootstrap/dist/fonts/`. Supplements can be specified as just an array of paths, or an array of objects with a path and copy plugin pattern object. | `[]` |
-| `externals[].supplements[].path` | string | The glob path to copy assets from. | *None* |
-| `externals[].supplements[].cwpPatternConfig` | object | The properties to set on the [`copy-webpack-plugin` pattern object](https://github.com/webpack-contrib/copy-webpack-plugin#patterns). This object is merged in with the default `from` and `to` properties which are generated by the externals plugin. | `{}` |
+| `externals[].supplements[]`<br>`  .path` | string | The glob path to copy assets from. | *None* |
+| `externals[].supplements[]`<br>`  .cwpPatternConfig` | object | The properties to set on the [`copy-webpack-plugin` pattern object](https://github.com/webpack-contrib/copy-webpack-plugin#patterns). This object is merged in with the default `from` and `to` properties which are generated by the externals plugin. | `{}` |
 | `externals[].append` | boolean | Set to true to inject this module after your Webpack bundles. | `false` |
 | `hash` | boolean | Set to true to append the injected module distro paths with a unique hash for cache-busting. | `false` |
 | `outputPath` | string | The path (relative to your Webpack `outputPath`) to store externals copied over by this plugin. | `vendor` |

package-lock.json

@@ -1,6 +1,6 @@
 {
   "name": "html-webpack-externals-plugin",
-  "version": "3.7.0",
+  "version": "3.8.0",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {

package.json

@@ -1,6 +1,6 @@
 {
   "name": "html-webpack-externals-plugin",
-  "version": "3.7.0",
+  "version": "3.8.0",
   "description": "Webpack plugin that works alongside html-webpack-plugin to use pre-packaged vendor bundles.",
   "keywords": [
     "htmlwebpackplugin",

src/HtmlWebpackExternalsPlugin.js

Inline diff not displayed. View the whole file

test/HtmlWebpackExternalsPlugin.spec.js

Inline diff not displayed. View the whole file

test/utils/index.js

Inline diff not displayed. View the whole file