This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 214
How to add sass loader? #803
Comments
Hi! I think the issue might be the file extension in the It would be great to add a Saas example to the docs, since this came up in #755 too. Don't suppose you'd be up for opening a PR? :-) |
Hi everyone, I noticed this thread, and I used the following in my .neturinorc.js
and everything worked just fine in my react components. |
edmorley
added a commit
that referenced
this issue
May 18, 2018
Since unless the default file extension regex is overridden, the `.sass` (old style) or `.scss` (new style) Sass styles will not be seen by `sass-loader`: https://github.com/webpack-contrib/sass-loader#examples https://sass-lang.com/documentation/file.SASS_REFERENCE.html Closes #755. Closes #803. Refs #871.
edmorley
added a commit
that referenced
this issue
Oct 12, 2018
To try and prevent the confusion caused when users do things like: * using `@neutrinojs/react` followed by `@neutrinojs/web`, which clobbers the React parts of the config: #1129 (comment) * using `@neutrinojs/react` followed by `@neutrinojs/style`, which causes incorrect `extract` and `hot` configuration: #1129 (comment) #755 (comment) #803 (comment) #869 (comment)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How to?
Neutrino: 8.2.2
Presets: [ jest: 8.2.2, react-components: 8.2.2, standardjs: 8.2.2, style-loader: 8.2.2 ]
Yarnpkg: 1.6.0
Node: 9.5.0
OS: OSX - High Sierra
What did I do ? Trying to setup "Hello world" app
What did I expect to happen ? "Hello World" on the screen with styling on
What actually happened, contrary to my expectations? "Hello World" did appear at first without applying sass, after importing sass from
src/stylesheets/main.scss
intoindex.jsx
where "Hello World" is, the server logs:My package.json
My .neutrinorc.js
The text was updated successfully, but these errors were encountered: