1.0.7 • Published 6 years ago
unicode-loader v1.0.7
Unicode-loader
Unicode loader for webpack. Convert all the string in javascript file into unicode.
Install
npm install unicode-loader --save-dev
Example
{
loaders: [{
// convert code to unicode
test: /\.js?$/,
loader: "unicode-loader"
}]
}
Before webpack
var mNames = '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月', '';
After webpack
Attention
This loader should be placed at last of your many loaders, for that the unicode will be replace by word after other loaders.
Developer
- Ben Yin ( yinhaibo21@gmail.com )