This repository has been archived by the owner on Apr 5, 2021. It is now read-only.
v3.7.0
This is a summary of the differences between v3.7.0 and v3.6.0.
Commits
Show commits
SHA | Author | Committed | Message |
---|---|---|---|
c9609da |
2018-2-16 | updating dependencies | |
15a0789 |
2018-2-17 | adding full configurability of copy webpack plugin | |
c15d887 |
2018-2-17 | 3.7.0 |
Changed files
Show changed files
.circleci/config.yml
@@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- - image: circleci/node:latest
+ - image: circleci/node:9.5.0
working_directory: ~/html-webpack-externals-plugin
steps:
- checkout
README.md
Inline diff not displayed. View the whole file
package-lock.json
Inline diff not displayed. View the whole file
package.json
@@ -1,6 +1,6 @@
{
"name": "html-webpack-externals-plugin",
- "version": "3.6.0",
+ "version": "3.7.0",
"description": "Webpack plugin that works alongside html-webpack-plugin to use pre-packaged vendor bundles.",
"keywords": [
"htmlwebpackplugin",
@@ -37,34 +37,34 @@
},
"homepage": "https://github.com/mmiller42/html-webpack-externals-plugin#readme",
"devDependencies": {
- "assertion-error": "^1.0.2",
+ "assertion-error": "^1.1.0",
"babel-cli": "^6.24.1",
"babel-core": "^6.25.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
- "babel-preset-env": "^1.6.0",
+ "babel-preset-env": "^1.6.1",
"babel-register": "^6.24.1",
- "bootstrap": "^3.3.7",
+ "bootstrap": "^4.0.0",
"create-github-release": "^1.4.1",
- "css-loader": "^0.28.4",
+ "css-loader": "^0.28.9",
"escape-string-regexp": "^1.0.5",
- "extract-text-webpack-plugin": "^3.0.0",
+ "extract-text-webpack-plugin": "^3.0.2",
"html-webpack-plugin": "^2.0.0",
"husky": "^0.14.3",
- "jquery": "^3.2.1",
- "lint-staged": "^4.0.2",
- "mocha": "^3.4.2",
- "prettier": "^1.7.0",
+ "jquery": "^3.3.1",
+ "lint-staged": "^6.1.1",
+ "mocha": "^5.0.1",
+ "prettier": "^1.10.2",
"rimraf": "^2.6.1",
- "webpack": "^3.3.0"
+ "webpack": "^3.11.0"
},
"peerDependencies": {
"html-webpack-plugin": "^2.0.0"
},
"dependencies": {
- "ajv": "^5.2.2",
- "copy-webpack-plugin": "^4.0.1",
- "html-webpack-include-assets-plugin": "^1.0.1"
+ "ajv": "^6.1.1",
+ "copy-webpack-plugin": "^4.4.1",
+ "html-webpack-include-assets-plugin": "^1.0.2"
}
}
src/HtmlWebpackExternalsPlugin.js
Inline diff not displayed. View the whole file
src/configSchema.json
@@ -21,6 +21,10 @@
"type": "string",
"enum": ["js", "css"]
},
+ "cwpPatternConfig": {
+ "type": "object",
+ "default": {}
+ },
"attributes": {
"type": "object",
"patternProperties": {
@@ -43,6 +47,10 @@
"type": "string",
"enum": ["js", "css"]
},
+ "cwpPatternConfig": {
+ "type": "object",
+ "default": {}
+ },
"attributes": {
"type": "object",
"patternProperties": {
@@ -63,7 +71,17 @@
"supplements": {
"type": "array",
"items": {
- "type": "string"
+ "type": ["string", "object"],
+ "properties": {
+ "path": {
+ "type": "string"
+ },
+ "cwpPatternConfig": {
+ "type": "object",
+ "default": {}
+ }
+ },
+ "required": ["path"]
},
"default": []
},
@@ -96,6 +114,21 @@
"minItems": 1,
"default": null
},
+ "cwpOptions": {
+ "type": "object",
+ "properties": {
+ "context": {
+ "default": "node_modules/"
+ }
+ },
+ "patternProperties": {
+ "^.+$": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "default": {}
+ },
"enabled": {
"type": "boolean",
"default": true
test/HtmlWebpackExternalsPlugin.spec.js
Inline diff not displayed. View the whole file
➕ test/fixtures/bower_components/context_test/dist/contextTest.css
Inline diff not displayed. View the whole file
➕ test/fixtures/bower_components/context_test/dist/{a,b}/1.css
Inline diff not displayed. View the whole file
➕ test/fixtures/bower_components/context_test/dist/{a,b}/2.css
Inline diff not displayed. View the whole file