dq-webpack

Common webpack configuration for all projects with ability to customize

Usage no npm install needed!

<script type="module">
  import dqWebpack from 'https://cdn.skypack.dev/dq-webpack';
</script>

README

Digitalquill webpack config

This package contains common config for webpack

Usage

```javascript
const buildBaseConfig = require('dq-webpack');

const baseConfig = buildBaseConfig(__dirname, {});

const config = baseConfig.merge({

  entry: {
    myEntry: pathToEntryFile,
  },

  anyOtherWebpackOption: {},

});

// Add custom config for production
if (process.env.APP_ENV === 'production') {
  config.merge({
  });
}

module.exports = config;
```