It will help you create new React-Webpack projects
generator-react-kylin
will help you create new React-Webpack projects.
It includes:
$ npm install -g yo
$ npm install -g generator-react-kylin
# Create a new directory, and `cd` into it
$ mkdir react-project && cd react-project
# run
$ yo react-kylin
If you install the
yarn
, just pressCtrl+C
(windows) /Command+C
(MacOS) to stop thenpm install
, just typeyarn install
to install.
# Development Mode (hot-reload not reload the whole page)
$ npm run dev
# Production Mode
$ npm run build
# ESLint Fix style
$ npm run fix