Server : Apache/2.4.52 (Ubuntu) System : Linux vps-b5787e30 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : zeljko ( 1002) PHP Version : 8.2.25 Disable Function : NONE Directory : /var/www/html/winidoc/ |
Upload File : |
const mix = require('laravel-mix'); let webpack = require('webpack'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel application. By default, we are compiling the Sass | file for the application as well as bundling up all the JS files. | */ //.sass('resources/sass/app.scss', 'css') mix.js('resources/js/app.js', 'js').vue() .postCss('resources/css/app.css', 'css', [ // ]); mix.webpackConfig({ entry: { vendor: [ 'vue', 'axios', 'lodash', 'promise-polyfill', 'setasap' ] }, resolve: { extensions: ['.js', '.vue'], alias: { '@': __dirname + '/resources', '@c': __dirname + '/resources/js', } }, stats: { children: true }, output:{ filename: '[name].js', chunkFilename:'js/[name].app.js', publicPath: '/' } }); mix.extract(['vue', 'jquery']); //mix.browserSync('localhost:8000');