webpack-rs
v4.2.0
Published
This package is intended to manage common assets across our various repositories. This can be installed using
Keywords
Readme
Webpack RS
This package is intended to manage common assets across our various repositories. This can be installed using
yarn add -D webpack-rsThis package exposes the following:
extendDefaultWebpackConfiguration: Use this to merge the base configuration with your apps configurationPlugins: plugins where options are likely to vary between projects. This object currently exposesCopyWebpackPlugin,MiniCssExtractPlugin, andWebpackManifestPluginhelpers: common functions that can be used in multiple projectshelpers.optimizeImages: This can be used along w/new Plugins.CopyWebpackPluginto optimize images copied via webpack (see https://webpack.js.org/plugins/copy-webpack-plugin/#transform for more information)
There's a basic example here that can be ran using npx webpack --config=example/webpack.config.js
