@caweb/a11y-webpack-plugin 1.0.2 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +3 -2
package/index.js CHANGED
@@ -135,7 +135,7 @@ class A11yPlugin {
135
135
 
136
136
  console.log(`<i> ${boldGreen('[webpack-dev-middleware] Running IBM Accessibility scan...')}`);
137
137
 
138
- let result = this.a11yCheck(path.join(process.cwd(), output.publicPath ?? '/' ), this.config );
138
+ let result = this.a11yCheck(path.join(process.cwd(), 'auto' === output.publicPath ? 'public' : output.publicPath ), this.config );
139
139
 
140
140
  if( result ){
141
141
  // we have to inject the a11y.update.js file into the head in order for the webpack-dev-server scripts to load.
@@ -183,7 +183,7 @@ class A11yPlugin {
183
183
  outputFolder,
184
184
  outputFilenameTimestamp
185
185
  }){
186
-
186
+ console.log( url )
187
187
  let acheckerArgs = [
188
188
  '--ruleArchive',
189
189
  ruleArchive,
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@caweb/a11y-webpack-plugin",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "CAWebPublishing Webpack Plugin to run Accessibility Scans",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "files": [
8
8
  "aceconfig.js",
9
- "index.js"
9
+ "index.js",
10
+ "README.md"
10
11
  ],
11
12
  "scripts": {
12
13
  "test": "echo \"Error: run tests from root\" && exit 0"