DEV Community 👩‍💻👨‍💻

Shiva
Shiva

Posted on

Webpack 5 Boilerplate

Post:
https://medium.com/@zural143/basic-webpack-4-and-es5-to-es6-transpiler-using-babel-dc66e72c86c6

Github:
https://github.com/sivaraj-v/react-webpack-starter-kit

I need to get rid of the following error in build, Looking for a solution.

npm run build or yarn build

$ webpack --mode production
10% building(node:94651) [DEP_WEBPACK_MAIN_TEMPLATE_GET_ASSET_PATH] DeprecationWarning: MainTemplate.getAssetPath is deprecated (use Compilation.getAssetPath instead)
95% emitting HtmlWebpackPlugin(node:94651) [DEP_WEBPACK_MAIN_TEMPLATE_GET_PUBLIC_PATH] DeprecationWarning: MainTemplate.getPublicPath is deprecated (use Compilation.getAssetPath(compilation.outputOptions.publicPath, options) instead)

Top comments (0)

Click 'Save' on this post

Then head to your Reading List to read and manage the posts you've saved.