react-pug-react-scripts
Created for create-react-app v3.2.0
just add react-pug environment with babel-plugin-transform-react-pug
create-react-app
with react-pug-react-scripts
install npx create-react-app app-name --scripts-version react-pug-react-scripts
for TypeScript
npx create-react-app app-name --scripts-version react-pug-react-scripts --typescript
note: TypeScript removes "import" of unused modules. variables of inside of pug is NOT detected by the system. fixed it by bellow code but it's untidy.
const use = [React, icon]
below is the original README
This package includes scripts and configuration used by Create React App.
Please refer to its documentation:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.