LoginSignup
14
12

More than 3 years have passed since last update.

LaravelMixのextensionにlaravel-mix-polyfilltというものがあり、簡単に使えたので書いておきます。

laravel-mix-polyfillのインストール

npm install laravel-mix-polyfill --save-dev

laravel-mix-polyfillを使うための設定

let mix = require('laravel-mix');

require('laravel-mix-polyfill');

mix.js('resources/js/app.js', 'public/js')
   .sass('resources/sass/app.scss', 'public/css')
   .polyfill({
      enabled: true,
      useBuiltIns: "usage",
      targets: {"firefox": "50", "ie": 11}
   });
14
12
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
12