Created
May 24, 2017 17:05
-
-
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
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 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