Skip to content

pohodnik/webpack-config

Repository files navigation

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 {
            // ...
        }
    }
});

About

Pohodnik webpack configuration for frontend build

Resources

License

Stars

Watchers

Forks

Packages

No packages published