Skip to content

Instantly share code, notes, and snippets.

@jahidulsaeid
Created February 2, 2023 06:16
Show Gist options
  • Save jahidulsaeid/cb95cb80b36e1ab44531b543bcb33248 to your computer and use it in GitHub Desktop.
Save jahidulsaeid/cb95cb80b36e1ab44531b543bcb33248 to your computer and use it in GitHub Desktop.
React laravel and Less configuration
const mix = require("laravel-mix");
mix.js("frontend/app.js", "public/js")
.react()
.less("frontend/styles/app.less", "public/css")
.options({
postCss: [
require("autoprefixer")({
grid: true,
}),
],
})
.setPublicPath("public")
.browserSync({
proxy: "localhost:8000",
files: ["public/**/*"],
open: false,
notify: false,
});
mix.version();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment