Typescript is supported, but you can use javascript as well.
This boilerplate contains configurations of all necessary tools for convenient development:
-
webpack builds configuration
- production
- development
-
linting and appearance
- eslint
- prettier
- .editorconfig file
-
pre-commit scripts
- husky
- lint-staged
-
git clone https://github.com/Super-Cereal/webpack-typescript-boilerplate.git
-
npm ci
-
npm start
for development ornpm run build
for production build
-
You can use "@" as path to "src" folder, it means @/index.js == /src/index.js
-
You can use
.scss
files and.module
styles
This boilerplate already supports JSX syntax. All you need is
npm install react react-dom
- Using typescript
npm install -D @types/react @types/react-dom
Now you can create index.jsx file like this:
import React from 'react';
import ReactDOM from 'react-dom';
import App from 'App';
ReactDOM.render(<App />, document.getElementById('root'));