J
J
Jedi2018-05-01 04:27:27
Laravel
Jedi, 2018-05-01 04:27:27

What is contained in app.js?

Hello!
What's in app.js besides vue.js ?
I want to remove everything that is there. But before that, I have to know the main packages that are out there.
Does it use WebPack?
What to add to app.js after removal?
I'm a little sleepy, sorry for the illiterate wording of the question.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Bille, 2018-05-01
@alexey_bille

The question is not entirely clear
In app.js, the bootstrap.js file is connected, in which other libraries are
connected. Lara's default webpack config (webpack.mix.js):

let mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | 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.
 |
 */

mix.js('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question