/webpackozea

A base webpack config for our arch.

Primary LanguageJavaScript

Webpackozea

Our base webpack configuration at Kozea for React SSR application

Installation

yarn

yarn add webpackozea

npm

npm i webpackozea

Usage

In your webpack config file

import { getBaseConfigClient, getBaseConfigServer } from 'webpackozea'

How to use locally

Use yalc if you want to test your changes locally using a store

Publish

Clone the webpackozea repo

git clone git@github.com:Kozea/webpackozea.git

In your local copy of webpackozea

# cd webpack-copy-local
yalc publish

Then in your project

# cd your-project
yalc link webpackozea

Update

Make your changes in your local webpackozea, then push the changes to the store

# cd webpack-copy-local
yalc push

Remove

To remove the local webpackozea from your project

# cd your-project
yalc remove webpackozea

To remove all local package from your project

# cd your-project
yalc remove --all

ATTENTION

In your project, each time you npm install, yarn install or update packages, you have to re-link again

# cd your-project
yalc link webpackozea