Takes tiny input and returns a Webpack config in the way I personally like.
ℹ️ This package has only ESM exports. You should import it from MJS files or read more here.
npm install --save-dev webpack-config-jaid@^17.4.2yarn add --dev webpack-config-jaid@^17.4.2Main types:
| Type | Example Project |
|---|---|
| adobeCep | emote-workflow |
| cli | package-field-cli |
| githubAction | action-npm-install |
| nodeClass | socket-enhance |
| nodeLib | buffer-to-data-url |
| nodeScript | emote-workflow/client |
| reactDomComponent | react-modern-picture |
| universalClass | key-counter |
| universalLib | epoch-seconds |
| webapp | letter.bar |
Unused types:
| Type | Example Project |
|---|---|
| generatorCorePlugin | |
| executable | |
| html | |
| node |
Following environment variables are read by webpack-config-jaid:
| Name | Description |
|---|---|
| browserSync | Can be a number that will be used as port for Browser Sync. |
| debugWebpack | If defined, debugging files will be written to dist folder. |
| GITHUB_WORKFLOW | If defined, CI mode will be active which increases script compression rate. |
| NODE_ENV | Used to determine if webpackConfig.mode should be "development" or not. |
| TRAVIS_TAG | If defined, CI mode will be active which increases script compression rate. |
| webpackDevtool | Overwrites webpackConfig.devtool with given value. |
| webpackPort | Port that webpack-dev-server hosts the HMR app on. Same as option devPort. |
Development hints for maintaining and improving webpack-config-jaid
Setting up:
git clone git@github.com:jaid/webpack-config-jaid.git
cd webpack-config-jaid
npm installTesting:
npm run test:devTesting in production environment:
npm run testMIT License
Copyright © 2021, Jaid <jaid.jsx@gmail.com> (https://github.com/jaid)