Skip to content
/ webpack Public

Webpack, JavaScript (with TypeScript), Jest and SCSS (with PostCSS) boilerplate

Notifications You must be signed in to change notification settings

eckode/webpack

Repository files navigation

build workflow

Eckode / Webpack

⚠️ This package is still a working in progress and is not yet suitable for usage.

Not, just another boilerplate.

An unopinionated; module bundling and preprocessing boilerplate to rapidly streamline frontend development.


About:

This code base can be used in 3 ways:

  • Fork it
  • Clone it
  • Depend on it

Features:

  • Webpack (v5):
    • Webpack-Dev-Server with HMR
  • CSS:
    • SCSS/SASS
    • PostCSS
  • JavaScript:
    • TypeScript
    • Babel
    • Jest
  • HTML

Sample code:

Use it:

By far the easiest way to use this code is via NPM.

yarn add -D @eckode/webpack then add the following script commands to your package.json.

"scripts": {
   "dev": "eckode", // Development
   "build": "eckode" // Production
},

Alternatively, clone and/or fork it, then run:

Yarn NPM
Install
yarn npm i
Develeping
yarn start npm run start
Testing
yarn test npm run test
Build
yarn build npm run build
Test build
yarn start-prod npm run start-prod
Lint
yarn lint npm run lint

Roadmap:

  • CLI functionality to allow usage of this code base as an npm package.
  • Replace Babel with SWC