Skip to content

YounglanHong/react-typescript-sass-boilerplate

Repository files navigation

react-sass-boilerplate

Install

$ npm install

Development

$ npm start

Go to http://localhost:3000

$ npm run sass

Compile SCSS to CSS

// package.json
"scripts": {
    "sass": "node-sass -wr --source-map true SCSS-FILE_PATH CSS-FILE_PATH"
  },

Customize file path

(※ Options: watch, recursive, source-map)

Production

Set the NODE_ENV to production

$ NODE_ENV=production npm start

Option

// package.json
"author": "AUTHOR_NAME <AUTHOR_EMAIL@email.com> (https://AUTHOR_URL.com)"

Set the package author name, email, url(optional)

License

MIT license