Skip to content

Instantly share code, notes, and snippets.

@ChaosPower
Created May 24, 2017 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChaosPower/aa5837db8f2c15d5b1830e40077ffde6 to your computer and use it in GitHub Desktop.
Save ChaosPower/aa5837db8f2c15d5b1830e40077ffde6 to your computer and use it in GitHub Desktop.
Laravel 5.4: Webpack: Custom SSL Certificate and Key for Browsersync Laravel Mix
const { mix } = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css');
mix.browserSync({
proxy: 'https://example.app',
host: 'example.app',
https: {
key: "/Users/user/.valet/Certificates/example.app.key",
cert: "/Users/user/.valet/Certificates/example.app.crt"
},
open: 'external',
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment