Giter Site home page Giter Site logo

react-router-redux-ts-webpack's Introduction

React + TypeScript + Webpack5 + React Router + React Redux

プロジェクト前提


構成

Node.js 18.0.0
npm 8.6.0
React 18.2.0
TypeScript 4.7.4
webpack 5.73.0
webpack-cli 4.10.0
webpack-dev-server 4.9.3
react-router-dom 6.3.0
react-redux 8.0.2
@reduxjs/toolkit 1.8.2
msw 0.42.3
esbuild-loader 2.19.0
fork-ts-checker-webpack-plugin 7.2.11
thread-loader 3.0.4

コマンド

プロジェクト初期化

npm install
npx msw init public/ --save

ローカルで dev 実行

npm run dev
  • dist を削除する
  • dev 用にビルドする
  • webpackdevServer で立ち上げる

ローカルで prod 実行

npm start
  • dist を削除する
  • prod 用にビルドする
  • http-server でローカルの HTTP サーバーをで立ち上げる

prod 用のビルドをする

npm run build
  • dist を削除する
  • prod 用にビルドする

react-router-redux-ts-webpack's People

Contributors

leeddhh avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.