microsoft / TypeScript-React-Starter

A starter template for TypeScript and React with a detailed README describing how to use the two together.
MIT License
11.08k stars 1.21k forks source link

Support sass loader #243

Open chriskuech opened 5 years ago

chriskuech commented 5 years ago

In projects created by create-react-app with default settings, all that is required for importing sass is to install node-sass. The project automatically understands to add the sass loader, enabling import "./myFile.scss" syntax.

In create-react-app --scripts-version=react-scripts-ts, users are required to add another layer of file watchers, adding unnecessary complexity.

Please update webpack config in the generator to load any scss files with the sass loader, just as it currently does with css files and just ass the default generator does with scss files.

peterremote1980 commented 5 years ago

after i npm i --save node-sass, but still failed.

netojose commented 5 years ago

Solution here: #43

yashsway commented 5 years ago

Solution here: #43

doesn't work