title: CKEDITOR has incorrect basepath when using NPM & Laravel Mix
body: <p>When I attempt to include CKEDITOR into my new Laravel 5.5 project using NPM, I get the following error in Chrome Console (using laravel Valet for the local.dev):</p>
  
  <pre><code>app.js:16991 GET https://local.dev/chart/config.js?t=H7HG 
  app.js:16991 GET https://local.dev/chart/skins/moono-lisa/editor.css?t=H7HG 
  app.js:16991 GET https://local.dev/chart/lang/en.js?t=H7HG 
  </code></pre>
  
  <p>My Laravel Mix setup looks like this:</p>
  
  <pre><code>mix.js('resources/assets/js/app.js', 'public/js')
    .babel(['resources/assets/js/libraries/*.js'], 'public/js/vendor.js')
    .version();
  </code></pre>
  
  <p>My CKEDITOR installation is located in:</p>
  
  <pre><code>/vendor/ckeditor/ckeditor
  </code></pre>
  
  <p>I am able to access the CKEDITOR instance when the site has loaded. However, as displayed above, when I navigate to <a href="https://local.dev/chart" rel="noreferrer">https://local.dev/chart</a>, CKEDITOR now looks for the config, skin, and lang files with /chart appended to it's basepath.</p>
  
  <p>I did some research, and found some related issues and was able to change the base_path using asset() successfully. The related stackOverflow questions can be found <a href="https://stackoverflow.com/questions/33180673/ckeditor-ignoring-basepath-in-laravel">here</a> and <a href="https://stackoverflow.com/questions/33318228/ckeditor-link-with-basepath">here</a>.</p>
  
  <p>What I would like to do is pull CKEDITOR in through NPM, use Laravel Mix to combine, version, and minify my scripts (one for vendor libraries, one for my app-specific JS), and then output those two.js files to these directories in the laravel app:</p>
  
  <pre><code> /public/js/vendor.js
   /public/js/app.js
  </code></pre>
  
  <p>Laravel mix produces these two files, builds successfully, and all other libraries play nicely. However, CKEDITOR loses it's base path and throws errors looking for skins / langs / config.js -- any idea how I can adjust CKEDITOR's basePath to point to the vendor files so that it'll stop squaking these errors and work correctly?</p>
  
  <p>Thanks you in advance for any assistance you can provide!</p>