eol-loader, inspired by gulp-eol, is a webpack loader that serves two purposes:
- Replaces all end of line characters with the appropriate EOL character for your platform, as determined by os.EOL.
- Adds a newline to the end of files that lack one.
In your webpack config:
For more information on how to configure loaders, visit webpack's documentation.