简体   繁体   中英

Install Laravel Compiling Assets (Mix) with composer

是否有可能仅使用composer安装和运行Laravel编译资产( Mix )?

Mix is based on webpack which requires node.js to compile assets (both js and css).

So you need to install node on your server and then run (depending on your setup):

npm run build

No.

Composer is for PHP packages

Laravel Mix is to compile JavaScript. You install it with npm.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM