Post

laravel mix cheatsheat

Compile sass into css with the simplicity of laravel-mix

1
npm init
1
npm install laravel-mix

Create webpack file

1
vim webpack.mix.js
1
2
3
let mix = require("laravel-mix");
mix.sass("scss/style.scss", "css/");
mix.options({ processCssUrls: false });
1
npm mix watch

Add more scripts

more scripts

This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.