You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
I'm using the ES6 skeleton, importing scss files in js like this:
```import 'styles/main.scss';````
Expected behavior
No JS error is expected...
And I expect that the compiled app.js shouldn't include require('styles/main.scss');
(which it does)
Actual behavior
The compiled scss ends up in public/app.css. (works as expected)
I'm getting an error Uncaught Error: Cannot find module 'styles/main.scss' from 'initialize.js'
But only in the browser (chrome), not in brunch build process.
Hello there, @subpublic and thanks for creating the issue.
I don't see cssModules enabled in your config and guessing you just want to link your component's stylus with its code like you would do in Webpack.
In Brunch, we don't think that using import in this way is cool: putting .js and .scss in the same dir with the same names seems enough for me. All stylesheets will be joined and copied to app.css, no imports are necessary.
Description
I'm using the ES6 skeleton, importing scss files in js like this:
```import 'styles/main.scss';````
Expected behavior
No JS error is expected...
And I expect that the compiled app.js shouldn't include
require('styles/main.scss');
(which it does)
Actual behavior
The compiled scss ends up in public/app.css. (works as expected)
I'm getting an error
Uncaught Error: Cannot find module 'styles/main.scss' from 'initialize.js'
But only in the browser (chrome), not in brunch build process.
Environment
package.json
contentsbrunch config contents
The text was updated successfully, but these errors were encountered: