@pohodnik/webpack-config
v1.3.9
Published
Webpack configuration for Pohodnik's projects
Downloads
10
Readme
webpack-config
Pohodnik webpack configuration for frontend build
install
yarn add -D @pohodnik/webpack-config
usage
In root of your project file webpack.config.js
const { createConfig } = require('@pohodnik/webpack-config');
module.exports = createConfig({
// local webpack config extends @pohodnik/webpack-config
});
or
const { createConfig } = require('@pohodnik/webpack-config');
module.exports = createConfig(argv => {
if (argv.mode === 'production') {
return {
// ...
}
}
});