maoberlehner / node-sass-magic-importer

Custom node-sass importer for selector specific imports, module importing, globbing support and importing files only once.
MIT License
292 stars 28 forks source link

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

Open hurano opened 4 years ago

hurano commented 4 years ago

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 commented 7 months ago

See https://stackoverflow.com/a/65582960/246724