@keqingrong/rsdoctor-webpack-plugin
v0.1.1
Published
A wrapper for @rsdoctor/webpack-plugin
Downloads
4
Readme
A wrapper for @rsdoctor/webpack-plugin
Install
npm i -D @rsdoctor/webpack-plugin @keqingrong/rsdoctor-webpack-plugin
Usage
webpack:
// webpack.config.js
const RsdoctorWebpackPlugin = require('@keqingrong/rsdoctor-webpack-plugin');
module.exports = {
// ...
plugins: [
process.env.RSDOCTOR &&
new RsdoctorWebpackPlugin({
// options
}),
].filter(Boolean),
};
ice.js v2:
// build.config.js
module.exports = {
webpackPlugins: {
'@keqingrong/rsdoctor-webpack-plugin': {},
},
};
Or
// build.json
{
"webpackPlugins": {
"@keqingrong/rsdoctor-webpack-plugin": {}
}
}