ADD OR REMOVE BOM FOR WEBPACK
I use a Windows PC for work in company.
It creates file with
However the files generated by Webpack do not contain the
So I write this plugin for Webpack so that it can add or remove
BOM automatically when generates files, by default only files matching the
/\.(html|htm|css|js|map)$/ pattern are processed.
In webpack config file:
var webpack = ;// import pluginvar BomPlugin = ;moduleexports =// ...plugins:// Add plugin in plugins list// true for adding bom// false for removing bomtrue// ...;