Webpack-in the current front-end automation tool, what can be used to replace the css path and js path in the. php file.

Source: Internet
Author: User
1. This is the PHP file. What I want is to replace the css and js files with the files. I have compressed them, added md5, and then added the file path.

1. This is the PHP file. What I want is to replace the css and js files with the files. I have compressed them, added md5, and then added the file path.

Reply content:

1. This is the PHP file. What I want is to replace the css and js files with the files. I have compressed them, added md5, and then added the file path.

Only know that laravel has "zip file with hash version number": http://laravel-china.org/docs/5.0/elixir

We recommend that you modify the addCss and addJs methods to process css and js files in a unified manner.

Ps: Seeing addCss and addJs reminds me of a foreign forum system, Vanilla, which loads css and js by calling the AddCssFile and AddJsFile methods in the Controller ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.