Skip to content

Commit 3e175f9

Browse files
committed
feat(icon): rename accessibleIcons to iconPlugin
1 parent c64226c commit 3e175f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/content/en/icon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Array of sizes to be generated (Square).
3434
**targetDir**
3535
- Default: `icons`
3636

37-
**accessibleIcons**
37+
**iconPlugin**
3838
- Default: true
3939

4040
Make icons accessible through `ctx` or Vue instances.

lib/icon/module.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function run (pwa, _emitAssets) {
3333
[1242, 2688, 'iphonexsmax'] // Iphone XS Max
3434
],
3535
targetDir: 'icons',
36-
accessibleIcons: true,
36+
iconPlugin: true,
3737
iconProperty: '$icon',
3838
publicPath,
3939
iconSrc: null,
@@ -79,7 +79,7 @@ async function run (pwa, _emitAssets) {
7979
addManifest.call(this, options, pwa)
8080

8181
// Add plugin
82-
if (options.accessibleIcons) {
82+
if (options.iconPlugin) {
8383
addPlugin.call(this, options)
8484
}
8585

@@ -109,7 +109,7 @@ function addPlugin (options) {
109109
icons[asset.name] = joinUrl(options.publicPath, asset.target)
110110
}
111111

112-
if (options.accessibleIcons) {
112+
if (options.iconPlugin) {
113113
this.addPlugin({
114114
src: path.resolve(__dirname, './plugin.js'),
115115
fileName: 'nuxt-icons.js',

0 commit comments

Comments
 (0)