@caweb/a11y-webpack-plugin 2.0.3 → 2.1.0

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 +5 -8
  2. package/package.json +3 -2
package/index.js CHANGED
@@ -13,8 +13,6 @@ import chalk from 'chalk';
13
13
  import { fileURLToPath, URL, pathToFileURL } from 'url';
14
14
  import { createRequire } from 'module';
15
15
 
16
- const require = createRequire(import.meta.url);
17
-
18
16
  /**
19
17
  * Internal dependencies
20
18
  */
@@ -23,10 +21,12 @@ import { landingPage } from './reporter.js';
23
21
  // default configuration
24
22
  import {default as DefaultConfig} from './aceconfig.js';
25
23
 
26
- const pluginName = 'CAWebA11yWebpackPlugin';
24
+ const require = createRequire(import.meta.url);
25
+
26
+ const pluginName = 'CAWebA11yPlugin';
27
27
 
28
28
  // IBM Accessibility Checker Plugin
29
- class CAWebA11yWebpackPlugin {
29
+ class CAWebA11yPlugin {
30
30
  config = {}
31
31
 
32
32
  constructor(opts = {}) {
@@ -75,9 +75,6 @@ class CAWebA11yWebpackPlugin {
75
75
  devServer.open.target.push(`${auditUrl}${this.config.outputFolder}/${this.config.outputFilename}.html`)
76
76
  }
77
77
 
78
- // we always make sure the output folder is cleared
79
- fs.rmSync( staticDir.directory, { recursive: true, force: true } );
80
-
81
78
  // Hot Module Replacement
82
79
  // if( compiler?.options?.devServer?.hot ){
83
80
  // // we create a blank file for the hot update to compile on our page.
@@ -289,4 +286,4 @@ class CAWebA11yWebpackPlugin {
289
286
  } // end of class
290
287
 
291
288
 
292
- export default CAWebA11yWebpackPlugin;
289
+ export default CAWebA11yPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/a11y-webpack-plugin",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
4
4
  "description": "CAWebPublishing Webpack Plugin to run Accessibility Scans",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -35,11 +35,12 @@
35
35
  "webpack"
36
36
  ],
37
37
  "dependencies": {
38
+ "@caweb/webpack": "^1.6.3",
38
39
  "accessibility-checker": "^4.0.10",
39
40
  "check-valid-url": "^0.1.0"
40
41
  },
41
42
  "devDependencies": {
42
- "@caweb/html-webpack-plugin": "^2.0.2",
43
+ "@caweb/html-webpack-plugin": "^2.1.0",
43
44
  "webpack": "^5.104.1",
44
45
  "webpack-cli": "^6.0.1"
45
46
  }