strip-trailing-space-loader
v1.1.0
Published
Strip trailing whitespace from javascript files
Downloads
10
Maintainers
Readme
strip-trailing-space-loader
Strip trailing space is a loader for webpack that will remove all trailing whitespaces from compiled files.
Plugin will also replace CRLF to LF, but you can specifiy line_endings in options to something else than unix
to skip this.
Instalation
npm install strip-trailing-space-loader --save-dev
Webpack usage
{
module: {
rules:[
{
test: /\.m?js$/,
use: [
{
loader: 'stripTrailingWhitespace',
options: {
line_endings: 'unix',
},
},
],
}
]
}
}