errorcode-loader
v0.0.3
Published
### Install
Downloads
3
Readme
Error Code generation for Webpack
Install
yarn add -D errorcode-loader
Usage
function test() {
throw new ErrorCode('Error message');
}
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.js$/,
use: [
'babel-loader',
{
loader: 'errorcode-loader,
options: {
errorFilePath: 'ErrorCode.json'
}
}
]
}
]
}
};
ErrorCode.json will be:
{"08e3733666":"\"'Error message'\""}