File tree Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,30 @@ if (process.env.NODE_ENV !== 'production') {
37
37
Optional: You can also pass settings through the second parameter at the time of installing the plugin, read about the object here:
38
38
https://github.com/dequelabs/axe-core/blob/master/doc/API.md#api-name-axeconfigure
39
39
40
- ---
40
+ ## Install in Nuxt.js
41
+ Create plugin file ` plugins/axe.js `
42
+ ``` javascript
43
+ import Vue from ' vue'
44
+ import VueAxe from ' vue-axe'
45
+
46
+ if (process .env .NODE_ENV !== ' production' ) {
47
+ Vue .use (VueAxe, {
48
+ config: {
49
+ // your configuration data
50
+ }
51
+ })
52
+ Vue .config .productionTip = false
53
+ }
54
+
55
+ ```
56
+
57
+ In config file ` nuxt.config.js `
58
+ ``` javascript
59
+ ...
60
+ plugins: [
61
+ { src: ' ~/plugins/axe' , ssr: false }
62
+ ]
63
+ ```
41
64
42
65
## Using with HTML files
43
66
#### CDN
@@ -55,8 +78,6 @@ Vue.use(VueAxe, {
55
78
})
56
79
```
57
80
58
- ---
59
-
60
81
## Run the demo
61
82
``` shell
62
83
git clone https://github.com/vue-a11y/vue-axe.git vue-axe-demo
@@ -68,7 +89,6 @@ npm run dev
68
89
It is a simple webpack template already installed and configured to run and check the logs in the browser console.
69
90
After the commands just access the http://localhost:8080/
70
91
71
- ---
72
92
73
93
## Run the tests
74
94
``` shell
@@ -82,8 +102,6 @@ Or run Cypress on interactive mode
82
102
npm run test:open
83
103
```
84
104
85
- ---
86
-
87
105
## Contributing
88
106
- Check the open issues or open a new issue to start a discussion around your feature idea or the bug you found;
89
107
- Fork repository, make changes and send a pull request;
You can’t perform that action at this time.
0 commit comments