@akqa-frontline/webpack-config
TypeScript icon, indicating that this package has built-in type declarations

0.8.0 • Public • Published

@akqa-frontline/webpack-config

GitHub npm (scoped)

this package is not yet fully documented

Baseline Configuration for Webpack.

What does it do

This package can be used to generate a best-practice Webpack configuration. It is based on create-react-app.

Notable features

  • Vendor and Runtime chunk generation for long-time caching
  • HTML generation
  • .env variables support in JS and HTML
  • Works with a Module / No Module setup out of the box
  • Bundle Analyzing
  • Asset Manifest generation - optimized for module / no module setup
  • Hot Module Reloading

Install

Install this package and its peer dependencies:

npm install --save-dev --save-exact @akqa-frontline/scss-config-webpack-plugin
npm install --save-dev --save-exact webpack @hot-loader/react-dom react react-dom react-hot-loader webpack-dev-server

Usage

Create a Webpack configuration

// webpack.config.js

const { FrontlineWebpackConfig } = require("@akqa-frontline/webpack-config")

const moduleWebpackConfig = FrontlineWebpackConfig(
    "modern",
    { ... any webpack configuration you want merged }
)

const noModuleWebpackConfig = FrontlineWebpackConfig(
    "legacy",
    { ... any webpack configuration you want merged }
)

module.exports = [moduleWebpackConfiguration, noModuleWebpackConfiguration]

Contributing

Please refer to the contributing document.

License

ISC © AKQA

Readme

Keywords

none

Package Sidebar

Install

npm i @akqa-frontline/webpack-config

Weekly Downloads

2

Version

0.8.0

License

ISC

Unpacked Size

62.7 kB

Total Files

30

Last publish

Collaborators

  • dni