Skip to content
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.

Latest commit

 

History

History
23 lines (16 loc) · 470 Bytes

misc.md

File metadata and controls

23 lines (16 loc) · 470 Bytes

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

// 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.