Have ideas to improve npm?Join in the discussion! »

    webpack-config-jaid
    TypeScript icon, indicating that this package has built-in type declarations

    13.0.1 • Public • Published

    webpack-config-jaid

    License Sponsor webpack-config-jaid
    Build status Commits since v13.0.1 Last commit Issues
    Latest version on npm Dependents Downloads

    Takes tiny input and returns a Webpack config in the way I personally like.

    Opinionated

    This project is tailored to my personal needs and workflows and therefore highly opinionated. Feel free to use it or get inspired by it, but please do not get frustrated if you come across weird features or difficulties integrating it in your own ecosystem.

    Installation

    webpack-config-jaid on npm

    npm install --save-dev webpack-config-jaid@^13.0.1

    webpack-config-jaid on Yarn

    yarn add --dev webpack-config-jaid@^13.0.1

    Usage

    Main 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

    Environment Variables

    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.

    Development

    Setting up:

    git clone git@github.com:jaid/webpack-config-jaid.git
    cd webpack-config-jaid
    npm install

    Testing:

    npm run test:dev

    Testing in production environment:

    npm run test

    License

    MIT License
    Copyright © 2021, Jaid <jaid.jsx@gmail.com> (https://github.com/jaid)

    Install

    npm i webpack-config-jaid

    DownloadsWeekly Downloads

    304

    Version

    13.0.1

    License

    none

    Unpacked Size

    476 kB

    Total Files

    8

    Last publish

    Collaborators

    • avatar