title: How Can I Install sweetalert2 via Laravel-Mix?
body: <p>STEP1: In console/terminal.</p>
  
  <pre><code>npm install --save sweetalert2
  </code></pre>
  
  <p>STEP2: In app.scss add this line...</p>
  
  <pre><code>@import '~sweetalert2/src/sweetalert2.scss';
  </code></pre>
  
  <p>STEP3: In app.js add this line...</p>
  
  <pre><code>const swal = require('sweetalert2');
  </code></pre>
  
  <p>STEP4: In webpack.min.js...</p>
  
  <pre><code>mix.setPublicPath('public');
  mix.js('resources/js/app.js', 'js');
  mix.sass('resources/sass/app.scss', 'css');
  </code></pre>
  
  <p>STEP5: <code>npm run dev</code></p>
  
  <p>STEP6: Add app.js and app.css to HTML document</p>
  
  <p>I got this error:</p>
  
  <blockquote>
    <p>Uncaught ReferenceError: swal is not defined</p>
  </blockquote>
  
  <p>What's the missing step?</p>