current position:Home>PHP composer and Vue node_ modules

PHP composer and Vue node_ modules

2022-02-03 00:57:19 CSDN Q & A

The phenomenon and background of the problem

Written before php When , introduce composer file , Single file direct use require_once DIR . '/vendor/autoload.php';
You can load the extension class library ;


Then write today vue Single page , I just want to try . It doesn't work , Just want to ask ?


Is there any similar require_once DIR . '/vendor/autoload.php'; In this way , It can also be used directly node_modules Of ?

Refer to the answer 1:

Sure use require(url)

Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.

Random recommended