Created
February 2, 2023 06:16
-
-
Save jahidulsaeid/cb95cb80b36e1ab44531b543bcb33248 to your computer and use it in GitHub Desktop.
React laravel and Less configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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