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
Well I've been reading issues over here and I believe it is the same case as mentioned in few places here and there. that's similar to #100
Anyway how does it look in my project.
Whenever I try to import anything scss related - it stops working -
If I will add it manually during HRM then it works. (First I start application without import, later on I add that import to file and it works (and show what I uploaded below))
I'm quite a newbie to Webpack though so maybe I'm doing something absolutely wrong.
and 4 commands that i'm using currently
"clean": "rimraf dist",
"build:webpack": "webpack --config webpack.config.prod.js --progress --colors",
"build": "npm run clean && npm run build:webpack",
"start": "npm run clean && npm run build:webpack && node server.js",
The text was updated successfully, but these errors were encountered:
shiroganee
changed the title
webpack odd behavior (nothing literally happens)
webpack odd behavior (nothing literally happens - probablhy stalls)
Feb 1, 2016
shiroganee
changed the title
webpack odd behavior (nothing literally happens - probablhy stalls)
webpack odd behavior (nothing literally happens - probably stalls)
Feb 1, 2016
Ok I solved it by myself. The problem wasn't with the sass-loader nor with the webpack (sorry). It was all about typeof window !== 'undefined.
I'm writing isomorphic app and the webpack nor the sass-loader was crashing. The crashing one was application during start. Odd thing that WebStorm didn't show that. I only observed that in Visual Studio Code (unexpected token in scss file).
if (typeof window !== 'undefined')
and require in that resolved problem and it is working like a charm right now.
Maybe it is worth pointing out in Readme that in isomorphic apps it is important to check for window if you wish to include styles?
Thx for also writing down the solution for your case. I don't think that we should add a note on isomorphic apps since this is not related to the sass-loader at all.
Well I've been reading issues over here and I believe it is the same case as mentioned in few places here and there. that's similar to #100
Anyway how does it look in my project.
Whenever I try to import anything scss related - it stops working -
If I will add it manually during HRM then it works. (First I start application without import, later on I add that import to file and it works (and show what I uploaded below))
I'm quite a newbie to Webpack though so maybe I'm doing something absolutely wrong.
and 4 commands that i'm using currently
The text was updated successfully, but these errors were encountered: