Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I write the config for laravel-mix? #215

Open
hurano opened this issue Aug 21, 2020 · 1 comment
Open

How can I write the config for laravel-mix? #215

hurano opened this issue Aug 21, 2020 · 1 comment

Comments

@hurano
Copy link

hurano commented Aug 21, 2020

I am using laravel. How can I write the config for laravel-mix?

My current setting:

const mix = require('laravel-mix');
const $ = require('jquery');

mix.autoload({
        jquery: ['$', 'window.jQuery']
    })
    .react('resources/js/app.js', 'public/js')
    .version()
    .sourceMaps()
    .sass('resources/sass/app.scss', 'public/css')
    .sass('resources/sass/vendors.scss', 'public/css')
    .options({
        processCssUrls: true
    })
    .browserSync({
        host: 'local.prayforcybertorture.com',
        proxy: 'local.prayforcybertorture.com',
        open: 'external'
    });
@donquixote
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants