Changeset View
Changeset View
Standalone View
Standalone View
src/webpack.mix.js
const mix = require('laravel-mix'); | const mix = require('laravel-mix'); | ||||
/* | /* | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| Mix Asset Management | | Mix Asset Management | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| Mix provides a clean, fluent API for defining some Webpack build steps | | Mix provides a clean, fluent API for defining some Webpack build steps | ||||
| for your Laravel application. By default, we are compiling the Sass | | for your Laravel application. By default, we are compiling the Sass | ||||
| file for the application as well as bundling up all the JS files. | | file for the application as well as bundling up all the JS files. | ||||
| | | | ||||
*/ | */ | ||||
mix.js('resources/js/user.js', 'public/js') | mix.js('resources/js/user.js', 'public/js') | ||||
.js('resources/js/admin.js', 'public/js') | .js('resources/js/admin.js', 'public/js') | ||||
.sass('resources/sass/app.scss', 'public/css'); | .sass('resources/sass/app.scss', 'public/css') | ||||
.sass('resources/sass/document.scss', 'public/css'); |