justkidding96's avatar

Laravel mix

Hi,

After a little amount of time. I discoverd that the new Laravel mix doesn't work out of the box.

The problem which I ran up to is when I do: npm run hmr the node server is created. But when I make a sass change; for example I make the body red instead of blue the browser isn't refreshing. What do I wrong?

@JeffreyWay

0 likes
6 replies
WebKenth's avatar

As far as i know Laravel Mix doesn't come with browsersync

When you make a change it automatically compiles your css and js, You have to refresh the browser yourself

justkidding96's avatar
justkidding96
OP
Best Answer
Level 1

@WebKenth I have it working now with hrm after a long search on the web. I discovered that u need to replace the sass module inside webpack.config.js on line 123 with this:

module.exports.module.rules.push({ test: /\.scss$/, loader: 'style-loader!css-loader?sourceMap!sass-loader?sourceMap&sourceComments' });

Please or to participate in this conversation.