Skip to content

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

README.md

+28-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,27 @@ module.exports = function (webpackConfig, isDevelopment) {
147147
]);
148148
};
149149
```
150-
related issues: [#462][462], [#662][662], [#900][900]
150+
related issues: [#462][462], [#662][662], [#900][900]
151+
152+
## scss support
153+
- install `node-sass` and `sass-loader`:
154+
155+
```
156+
npm install --save-dev node-sass sass-loader
157+
```
158+
159+
- edit `webpack.monkey.js` like this:
160+
```js
161+
/* copy addExclude, findLoader, addLoader, getScssLoader, createTextExtractor from snippets */
162+
module.exports = function (webpackConfig, isDevelopment) {
163+
addExclude(webpackConfig, /\.scss$/);
164+
addLoader(webpackConfig, getScssLoader(isDevelopment));
165+
};
166+
```
167+
similar code for less or stylus.
168+
169+
related issues: [#78][78], [#115][115], [#351][351], [#412][412], [#1509][1509], [#1639][1639]
170+
151171
## TODOs
152172
- [ ] <del>add helpers</del> snippets
153173
- [x] addPlugin
@@ -181,3 +201,10 @@ related issues: [#462][462], [#662][662], [#900][900]
181201
[462]: https://github.com/facebookincubator/create-react-app/issues/462
182202
[662]: https://github.com/facebookincubator/create-react-app/pull/662
183203
[900]: https://github.com/facebookincubator/create-react-app/issues/900
204+
205+
[78]: https://github.com/facebookincubator/create-react-app/issues/78
206+
[115]: https://github.com/facebookincubator/create-react-app/pull/115
207+
[351]: https://github.com/facebookincubator/create-react-app/issues/351
208+
[412]: https://github.com/facebookincubator/create-react-app/pull/412
209+
[1509]: https://github.com/facebookincubator/create-react-app/pull/1509
210+
[1639]: https://github.com/facebookincubator/create-react-app/issues/1639

0 commit comments

Comments
 (0)