A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);| var debug = process.env.NODE_ENV !== "production"; | |
| var webpack = require('webpack'); | |
| module.exports = { | |
| context: __dirname, | |
| devtool: debug ? "inline-sourcemap" : null, | |
| entry: "./js/scripts.js", | |
| output: { | |
| path: __dirname + "/js", | |
| filename: "scripts.min.js" |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Contracts\Routing\Middleware; | |
| /** | |
| * NonWWW | |
| * Redirects any www requests to non-www counterparts. |
| // Alerts | |
| @include alert-variant($background, $border, $text-color); | |
| // Background Variant | |
| @include bg-variant($parent, $color); | |
| // Border Radius | |
| @include border-top-radius($radius); | |
| @include border-right-radius($radius); | |
| @include border-bottom-radius($radius); |
| <?php | |
| /************************************************************************* | |
| * Get File Information | |
| */ | |
| // Assuming these come from some data source in your app | |
| $s3FileKey = 's3/key/path/to/file.ext'; | |
| $fileName = 'file.ext'; |
| #browser caching of static assets | |
| location ~* \.(jpg|jpeg|png|gif|ico|css|js|woff|woff2|svg|svgz|mp4|ogg|ogv|webm|htc)$ { | |
| expires 1y; | |
| access_log off; | |
| } |
| <?php | |
| return [ | |
| // debug mode? | |
| 'debug' => false, | |
| // whther log file should be written | |
| 'log' => true, | |
| // How much detail is expected in output, 1 being the lowest, 3 being highest. |