Laravel app.js和app.css为什么需要使用? 我们可以删除那些吗?

I am new learner on Laravel.

I am using Laravel 5.3.But I want Use Bootstrap css and Js. But Laravel have default app.css and app.js. Hare app.css actually Bootstrap CSS and also app.js work like Bootstarp js. But can i delete app.js and app.css and can i use custom version Bootstrap CSS & JS ?

So I need to know why we will be use this two files ?

2个回答



您可以删除它们,请阅读以下几行:</ p>

CSS </ strong > </ p>

Laravel Elixir提供了一个干净,富有表现力的API,而不是编译SASS或更少,这是纯CSS的扩展,添加变量,mixins和其他强大的功能,使得使用CSS更加愉快 。</ p>

在本文档中,我们将简要讨论CSS编译; 但是,您应该查阅完整的Laravel Elixir文档,了解有关编译SASS或更少的更多信息。</ p>

JavaScript </ strong> </ p>

Laravel 不要求您使用特定的JavaScript框架或库来构建应用程序。 实际上,您根本不必使用JavaScript。 但是,Laravel确实包含了一些基本的脚手架,以便更容易开始使用Vue库编写现代JavaScript。 Vue提供了一个富有表现力的API,用于使用组件构建强大的JavaScript应用程序。</ p>

完整参考 </ p>
</ div>

展开原文

原文

You can delete them, read the following lines:

CSS

Laravel Elixir provides a clean, expressive API over compiling SASS or Less, which are extensions of plain CSS that add variables, mixins, and other powerful features that make working with CSS much more enjoyable.

In this document, we will briefly discuss CSS compilation in general; however, you should consult the full Laravel Elixir documentation for more information on compiling SASS or Less.

JavaScript

Laravel does not require you to use a specific JavaScript framework or library to build your applications. In fact, you don't have to use JavaScript at all. However, Laravel does include some basic scaffolding to make it easier to get started writing modern JavaScript using the Vue library. Vue provides an expressive API for building robust JavaScript applications using components.

Complete Reference



Laravel默认的CSS和JS文件可以安全删除。</ p>

但是,这些样式将是 默认情况下在以下地方使用,所以请注意。</ p>


  1. 默认欢迎页面</ li>
  2. Laravel auth pages </ li >
  3. 默认错误页面</ li>
    </ ol>

    如果您使用自定义主题或自己的样式,可以使用Laravel Elixer编译它们,哪些将创建应用程序 样式文件的.css和javascript相关文件的app.js。</ p>

    https://laravel.com/docs/5.3/elixir </ p>

    https://laravel.com/docs/5.3/frontend </ p>
    </ div>

展开原文

原文

Laravel default CSS and JS files are safe to remove.

However, these styles will be used in the following places by default, so please be taken care of it.

  1. Default Welcome page
  2. Laravel auth pages
  3. Default error page

If you are using custom themes or your own styles, you can use Laravel Elixer to compile them and which will create app.css for style files and app.js for javascript related files.

https://laravel.com/docs/5.3/elixir

https://laravel.com/docs/5.3/frontend

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐