@proca/widget
Version:
Proca is an open-source campaign toolkit designed to empower activists and organisations in their digital advocacy efforts. It provides a flexible and customisable platform for creating and managing online petitions, email campaigns, and other forms of di
23 lines (19 loc) • 652 B
JavaScript
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
const ModuleScopePlugin = require("react-dev-utils/ModuleScopePlugin");
const _webpack = require("webpack");
module.exports = webpack => {
webpack.plugins.push(
new _webpack.BannerPlugin({
banner: "hello world proca.app",
})
);
if (process.env.BUNDLE_VISUALIZE == 1) {
webpack.plugins.push(new BundleAnalyzerPlugin({ analyzerMode: "static" }));
// analyzerMode: "static",
// reportFilename: "report.html"
}
webpack.resolve.plugins = webpack.resolve.plugins.filter(
plugin => !(plugin instanceof ModuleScopePlugin)
);
return webpack;
};