let mix = require('laravel-mix') mix.js('resources/js/tool.js', 'dist/js');
info at phpclasses dot org