You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,24 @@ Default: `wpr`
99
99
100
100
Sets the name of the disk/drive/mount point for the RAMdisk. e.g. A value of `batman` would result in a disk root of `/Volumes/batman` on MacOS and `/mnt/batman` on Linux variants.
101
101
102
+
## API
103
+
104
+
### `WebpackPluginRamdisk.cleanup(diskPath)`
105
+
Parameters: `diskPath` ⇒ `String` The mounted path of the RAMdisk to unmount and remove
106
+
107
+
`Static`. Provides a convenience method to unmount and remove a RAMdisk created with the plugin.
108
+
109
+
To remove the RAMdisk that the plugin created, first obtain the `diskPath` from the plugin:
_**Use Caution** as specifying the wrong `diskPath` can have unintended consequences and cause a loss of data. The commands this method utilize can remove other drives as well._
0 commit comments