guychienll / template-webpack

the quick started template for webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Table of Contents

Demo Links

Architecture

flowchart TD

    subgraph script
        ts
        tsx
    end

    subgraph stylesheet
        scss
    end

    subgraph webpack
        script --> babel-loader --> .dist/bundle.js
        stylesheet --> sass-loader --> postcss-loader --> css-loader --> mini-extract-css-loader --> .dist/main.css
    end

    .dist/bundle.js --> html
    .dist/main.css --> html

    subgraph html
        script-tag
        link-tag
    end

    html --> browser --> client
Loading

Prerequisites

Dependency Version
node v18.17 or higher
npm v9.6.7 or higher

Getting Started

Clone the repository

git clone

Install dependencies

npm install

Run the application

Development watch mode would be run on https://localhost:3000

npm run dev

Build the application

development build
npm run build:dev
production build
npm run build:prod

Storybook

npm run storybook

About

the quick started template for webpack


Languages

Language:TypeScript 53.1%Language:JavaScript 41.2%Language:SCSS 3.1%Language:HTML 2.0%Language:Shell 0.6%