I've been tired to implement reactjs on Kintone App as its UI component based on this quick-start guide:
I've been followed every instructions there and the result was error like this:
Error: webpack.optimize.UglifyJsPlugin has been removed, please use config.optimization.minimize instead.
I've also tried to install uglifyjsplugin, tried to change webpack-cli version but still resulted the same error.
Is there any guide or any way to simply implement reactjs on kintone app? Any answer would be appreciated, thank you
Plugin "webpack.optimize.UglifyJsPlugin", which existed in Webpack 3, had been removed in Webpack 4 per the link below, so the error incurred.
Therefore, to use Webpack 4, you will need to change the way to specify "UglifyJsPlugin" by editing two areas and add one line as below.
3. add the following constant below "const path = require('path')"
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')