All Projects → GrantBartlett → react-typescript-webpack-starter

GrantBartlett / react-typescript-webpack-starter

Licence: MIT license
A starter project for using React, TypeScript, SCSS using Webpack 5.

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
SCSS
7915 projects
HTML
75241 projects

Projects that are alternatives of or similar to react-typescript-webpack-starter

webpack-4-react-bootstrap-starter-template
Starter boilerplate template for webpack 4 with React, Bootstrap 4
Stars: ✭ 16 (-70.91%)
Mutual labels:  sass-loader
wp-bootstrap4-sass
A clean slate Wordpress theme template with Bootstrap(4) Sass.
Stars: ✭ 28 (-49.09%)
Mutual labels:  webpack5
lego-webapp
Open source frontend for abakus.no
Stars: ✭ 44 (-20%)
Mutual labels:  webpack5
madosel
Modasel is a family of responsive front-end frameworks that make it easy to design beautiful responsive websites, apps that look amazing on any device. Madosel is semantic, readable, flexible, and completely customizable.
Stars: ✭ 39 (-29.09%)
Mutual labels:  sass-loader
frontenso-11ty-starter
Production-ready 11ty+Gulp+Webpack Starter that features Nunjucks, SASS, TailwindCSS (with JIT complier), and ESNext.
Stars: ✭ 24 (-56.36%)
Mutual labels:  template-repository
react-app-simple-chat-app
A Simple Chat Application using MERN stack (MongoDB, Express JS, React JS, Node JS) and Socket.io for real time chatting
Stars: ✭ 41 (-25.45%)
Mutual labels:  webpack5
Webpack Boilerplate
📦 ‎ A sensible webpack 5 boilerplate.
Stars: ✭ 1,949 (+3443.64%)
Mutual labels:  webpack5
enlite-starter
Enlite Starter - React Dashboard Starter Template with Firebase Auth
Stars: ✭ 28 (-49.09%)
Mutual labels:  webpack5
react-typescript-starter
Minimalist React 18 starter template with TypeScript ⚛
Stars: ✭ 72 (+30.91%)
Mutual labels:  template-repository
uiw-admin
UIW-Admin Panel Framework, Powered by React and @uiwjs.
Stars: ✭ 21 (-61.82%)
Mutual labels:  webpack5
Webpack5-Max
Webpack 5 Boilerplate for JS/React/TS apps.
Stars: ✭ 103 (+87.27%)
Mutual labels:  webpack5
promotion-web
基于React: v18.x.x/Webpack: v5.x.x/React Router v6.x.x/ Antd: v5..x.x/Fetch Api/ Typescript: v4.x.x 等最新版本进行构建...
Stars: ✭ 374 (+580%)
Mutual labels:  webpack5
zmi
🎃 Universal React Vue miniapp-ts development tool
Stars: ✭ 99 (+80%)
Mutual labels:  webpack5
sass-build
GitHub Action JavaScript wrapper runs Sass build with provided Inputs
Stars: ✭ 16 (-70.91%)
Mutual labels:  sass-loader
template-python
Template repository for Python projects
Stars: ✭ 20 (-63.64%)
Mutual labels:  template-repository
Webpack.js.org
Repository for webpack documentation and more!
Stars: ✭ 2,049 (+3625.45%)
Mutual labels:  webpack5
mf-lite
🎉 优雅且实用的基于 webpack module federation 的微前端解决方案 / Elegant and practical micro front-end solution based on webpack module federation.
Stars: ✭ 126 (+129.09%)
Mutual labels:  webpack5
babel-plugin-file-loader
Like webpack's file-loader, but on server side. Allows for production-grade require('./file.png')
Stars: ✭ 36 (-34.55%)
Mutual labels:  file-loader
mern-boilerplate
React + Express + Webpack + Mongo = MERN Stack Boilerplate
Stars: ✭ 39 (-29.09%)
Mutual labels:  sass-loader
coq-program-verification-template
Template project for program verification in Coq
Stars: ✭ 26 (-52.73%)
Mutual labels:  template-repository

logo

React TypeScript Webpack Starter

A starter project for using React, TypeScript, SCSS and Webpack.

Features

  • Webpack 5 + HMR
  • TypeScript + React
  • SCSS + Autoprefixing

🚀 Getting Started

Get up and running with these simple steps:

  1. Clone the project
  2. Run npm install
  3. Run npm run dev

Class & Functional stubs

In the master branch you can find the class based starter. In the branch functional you can find the functional based starter.

Configuration

Optional configuration for the project can be done in the following files below.

Open env.config.js and you will see the default configuration for the project.

Config Description
.browerslistrc Open .browserslist to configure Browser support for TypeScript + SCSS compiliation. Read more here about Browerslist. Defaults are set for last 2 versions, > 1% and IE 11.
outputConfig.destPath The folder in which you want your app to compile to. By default this is dist.
entryConfig Webpack Entry points, by default this will look for the TypeScript + SCSS entry point files. More info on Entry points here
copyPluginPatterns.patterns Configure folders you want copied over when compiling your app. Useful to copy over entire folder structures of images or fonts.
devServer Configure the Webpack development server. Enable https, specify a particular port, or host. More information on these options here
scssConfig.destFileName Specify the output for your css. E.g css/app.css
terserPluginConfig Full Terser config can be found here.

Images, Fonts and output

Here's an example of the default generated output to our dist folder.

- index.html
-- js
-- css
-- fonts
---- some-font-file.woff
-- images
---- path-to-example-image.jpg
  • By default, fonts and images are copied to the dist folder.
  • To include a reference to an image or font, it should be relative to where your css would output.

For example:

stylesheets/some-folder/some-file-somewhere.scss

.example {
    background-image: url("../images/path-to-image-example.jpg");
}

@font-face {
    font-family: "Example-font";
    src: url("../fonts/some-font-file.woff");
}

Would output to the folder css/app.css

- index.html
-- js
-- css
---- app.css
-- fonts
---- some-font-file.woff
-- images
---- path-to-example-image.jpg

Development

npm install
npm run dev

Production

Note: This will compile to a dist folder.

npm run build

Build tools

  • React - JavaScript library for building user interfaces.
  • TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript.
  • Webpack 5 - App bundler for JavaScript.
  • SCSS - Preprocessor for SCSS to CSS.

📝License

This project is licensed under the MIT License - see the LICENSE.md file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].