@shaizei/webpack-config

0.1.0-beta.12 • Public • Published

@shaizei/webpack-config

This package contains shareable webpack configuration used by the applications created with @shaizei/cli.

Getting Started

1. Installation

Using Yarn:

  yarn add @shaizei/webpack-config webpack webpack-dev-server webpack-cli --dev

Using npm:

  npm install @shaizei/webpack-config webpack webpack-dev-server webpack-cli --save-dev

2. Usage

  • Create a new webpack.config.js at the root directory of your project.
  • Import the config function from @shaizei/webpack-config package.
  const WebpackConfig = require('@shaizei/webpack-config');
  • Then, we just need to export the configurations.
  module.exports = WebpackConfig();

Override Default Config

If you want to override some of the pre-defined configuration, then simply pass a JavaScript object into WebpackConfig as follows:

module.exports = WebpackConfig({
  plugins: [...]
});

Package Sidebar

Install

npm i @shaizei/webpack-config

Weekly Downloads

0

Version

0.1.0-beta.12

License

MIT

Unpacked Size

21 kB

Total Files

10

Last publish

Collaborators

  • shahzaibkhalid
  • shaizei