HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/ruby-webpacker/misc.md
# How-Tos


## Ignoring swap files

If you are using vim or emacs and want to ignore certain files you can add `ignore-loader`:

```
yarn add ignore-loader
```

and add `ignore-loader` to `config/webpack/environment.js`

```js
// ignores vue~ swap files
const { environment } = require('@rails/webpacker')
environment.loaders.append('ignore', {
  test:  /.vue~$/,
  loader: 'ignore-loader'
})
```

And now all files with `.vue~` will be ignored by the webpack compiler.