@caweb/webpack 1.3.1 → 1.3.3

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.
package/changelog.txt CHANGED
@@ -1,3 +1,9 @@
1
+ v1.3.3
2
+ - Updated npm packages
3
+
4
+ v1.3.2
5
+ - Updated npm packages
6
+
1
7
  v1.3.1
2
8
  - Updated npm packages
3
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/webpack",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "CAWebPublishing Webpack Configuration",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@caweb/a11y-webpack-plugin": "^1.0.9",
39
39
  "@caweb/css-audit-webpack-plugin": "^1.0.12",
40
- "@caweb/html-webpack-plugin": "^1.5.2",
40
+ "@caweb/html-webpack-plugin": "^1.5.4",
41
41
  "@caweb/jshint-webpack-plugin": "^1.0.9"
42
42
  }
43
43
  }
@@ -1,3 +1,12 @@
1
+ v1.5.4
2
+ - Updated npm scripts
3
+ - Fixed issue with initial scheme selection for plugin
4
+ - Added toLower, toUpper, toTitleCase, replace, jsonStringify, jsonParse handlebar loader helper functions
5
+
6
+ v1.5.3
7
+ - Updated anchor typography and nav-link variables colors to match schemes
8
+ - Added update scripts script
9
+
1
10
  v1.5.2
2
11
  - Fixed issue with webpack plugins still being added even when flags are passed
3
12
  - Reverted multiple configuration export change back to single config export
@@ -0,0 +1,6 @@
1
+ export default function jsonParse(value){
2
+ // if value is passed
3
+ if( value && value.length ){
4
+ return JSON.parse(value);
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ export default function jsonStringify(value){
2
+ // if value is passed
3
+ if( value && value.length ){
4
+ return JSON.stringify(value);
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ export default function replace(value, search, replace){
2
+ // if value is passed
3
+ if( value && value.length ){
4
+ return value.replace(new RegExp(search, "g"), replace);
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ export default function toLower(value){
2
+ // if value is passed
3
+ if( value && value.length ){
4
+ return value.toLowerCase();
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ export default function toTitleCase(value){
2
+ // if value is passed
3
+ if( value && value.length ){
4
+ return value.split(' ').map( w => w.charAt(0).toUpperCase() + w.slice(1) ).join(' ')
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ export default function toUpper(value){
2
+ // if value is passed
3
+ if( value && value.length ){
4
+ return value.toUpperCase();
5
+ }
6
+ }