vite-plugin-build-file
v1.0.1
Published
A Vite plugin to download remote assets or copy local files into the dist directory during build.
Maintainers
Readme
��#� �v�i�t�e�-�p�l�u�g�i�n�-�b�u�i�l�d�-�f�i�l�e�
�
�
�
��N*N �V�i�t�e� ��c�N�(u�N(W�_�S
g�RhV/T�R�eꁨRN}�0
Y6Rbub�e�N0
�
�
�
�#�#� ��R��yr�p
�
�
�
�-� �/ec�N �U�R�L� �N}��e�N
�
�-� �/ec
Y6R,g0W�e�N
�
�-� �/ecub�e�e�N
�
�-� �/ecꁚ[IN���Q�vU_
�
�-� �/ecꁚ[IN�e�N_
�
�
�
�#�#� ��[ň
�
�
�
����b�a�s�h�
�
�n�p�m� �i�n�s�t�a�l�l� �v�i�t�e�-�p�l�u�g�i�n�-�b�u�i�l�d�-�f�i�l�e� �-�D�
�
�#� �b
�
�y�a�r�n� �a�d�d� �v�i�t�e�-�p�l�u�g�i�n�-�b�u�i�l�d�-�f�i�l�e� �-�D�
�
�#� �b
�
�p�n�p�m� �a�d�d� �v�i�t�e�-�p�l�u�g�i�n�-�b�u�i�l�d�-�f�i�l�e� �-�D�
�
����
�
�
�
�#�#� �O(u�e�l
�
�
�
�(W ��v�i�t�e�.�c�o�n�f�i�g�.�t�s�� �-NM�n�c�N�
�
�
�
����t�y�p�e�s�c�r�i�p�t�
�
�i�m�p�o�r�t� �{� �d�e�f�i�n�e�C�o�n�f�i�g� �}� �f�r�o�m� �"�v�i�t�e�"�;�
�
�i�m�p�o�r�t� �b�u�i�l�d�F�i�l�e� �f�r�o�m� �"�v�i�t�e�-�p�l�u�g�i�n�-�b�u�i�l�d�-�f�i�l�e�"�;�
�
�
�
�e�x�p�o�r�t� �d�e�f�a�u�l�t� �d�e�f�i�n�e�C�o�n�f�i�g�(�{�
�
� � �p�l�u�g�i�n�s�:� �[�
�
� � � � �b�u�i�l�d�F�i�l�e�(�{�
�
� � � � � � �/�/� �؞�����Q�vU_��S �
�
� � � � � � �d�e�s�t�:� �"�p�u�b�l�i�c�"�,�
�
� � � � � � �/�/� ��vh�e�NM�n
�
� � � � � � �t�a�r�g�e�t�s�:� �[�
�
� � � � � � � � �/�/� �N}��e�N
�
� � � � � � � � �{�
�
� � � � � � � � � � �s�r�c�:� �"�h�t�t�p�s�:�/�/�e�x�a�m�p�l�e�.�c�o�m�/�f�i�l�e�.�t�x�t�"�,�
�
� � � � � � � � � � �o�u�t�p�u�t�:� �"�a�s�s�e�t�s�/�f�i�l�e�.�t�x�t�"�,�
�
� � � � � � � � �}�,�
�
� � � � � � � � �/�/� �
Y6R,g0W�e�N
�
� � � � � � � � �{�
�
� � � � � � � � � � �s�r�c�:� �"�.�/�s�r�c�/�a�s�s�e�t�s�/�l�o�g�o�.�p�n�g�"�,�
�
� � � � � � � � � � �o�u�t�p�u�t�:� �"�i�m�a�g�e�s�/�l�o�g�o�.�p�n�g�"�,�
�
� � � � � � � � �}�,�
�
� � � � � � � � �/�/� �ub�e�e�N
�
� � � � � � � � �{�
�
� � � � � � � � � � �d�a�t�a�:� �"�H�e�l�l�o� �W�o�r�l�d�!�"�,�
�
� � � � � � � � � � �o�u�t�p�u�t�:� �"�g�r�e�e�t�i�n�g�.�t�x�t�"�,�
�
� � � � � � � � �}�,�
�
� � � � � � �]�,�
�
� � � � �}�)�,�
�
� � �]�,�
�
�}�)�;�
�
����
�
�
�
�#�#� �M�n�f
�
�
�
�#�#�#� �P�l�u�g�i�n�O�p�t�i�o�n�s�
�
�
�
����t�y�p�e�s�c�r�i�p�t�
�
�i�n�t�e�r�f�a�c�e� �P�l�u�g�i�n�O�p�t�i�o�n�s� �{�
�
� � �/�/� ��vh�e�NM�npe�~
�
� � �t�a�r�g�e�t�s�:� �(�C�o�p�y�T�a�r�g�e�t� �|� �G�e�n�e�r�a�t�e�T�a�r�g�e�t�)�[�]�;�
�
� � �/�/� ����Q�vU_�؞��:N �'�p�u�b�l�i�c�'�
�
� � �d�e�s�t�?�:� �s�t�r�i�n�g�;�
�
�}�
�
����
�
�
�
�#�#�#� �C�o�p�y�T�a�r�g�e�t�
�
�
�
�(u�NN}�b
Y6R�e�N�
�
�
�
����t�y�p�e�s�c�r�i�p�t�
�
�i�n�t�e�r�f�a�c�e� �C�o�p�y�T�a�r�g�e�t� �{�
�
� � �/�/� �eg�n�U�R�L� �b,g0W�e�N_
�
� � �s�r�c�:� �s�t�r�i�n�g�;�
�
� � �/�/� ����Q_��S �
�
� � �o�u�t�p�u�t�?�:� �s�t�r�i�n�g�;�
�
�}�
�
����
�
�
�
�#�#�#� �G�e�n�e�r�a�t�e�T�a�r�g�e�t�
�
�
�
�(u�Nub�e�e�N�
�
�
�
����t�y�p�e�s�c�r�i�p�t�
�
�i�n�t�e�r�f�a�c�e� �G�e�n�e�r�a�t�e�T�a�r�g�e�t� �{�
�
� � �/�/� ��e�N�Q�[
�
� � �d�a�t�a�:� �s�t�r�i�n�g�;�
�
� � �/�/� ����Q_
�
� � �o�u�t�p�u�t�:� �s�t�r�i�n�g�;�
�
�}�
�
����
�
�
�
�#�#� �_�f
�
�
�
�-� ��s�r�c��:� �/ec �U�R�L��h�t�t�p�/�h�t�t�p�s� �b,g0W�e�N_
�
�-� ��o�u�t�p�u�t��:� ��v�[�N ��d�e�s�t�� ��vU_�v_
�
�-� ��d�e�s�t��:� �؞��:N ��p�u�b�l�i�c�� ��vU_
�
�
�
�#�#� �:y�O
�
�
�
�#�#�#� �N}�z�e�N
�
�
�
����t�y�p�e�s�c�r�i�p�t�
�
�{�
�
� � �s�r�c�:� �'�h�t�t�p�s�:�/�/�e�x�a�m�p�l�e�.�c�o�m�/�i�m�a�g�e�.�j�p�g�'�,�
�
� � �o�u�t�p�u�t�:� �'�i�m�a�g�e�s�/�r�e�m�o�t�e�.�j�p�g�'�
�
�}�
�
����
�
�
�
�#�#�#� �
Y6R,g0W�e�N
�
�
�
����t�y�p�e�s�c�r�i�p�t�
�
�{�
�
� � �s�r�c�:� �'�.�/�s�r�c�/�a�s�s�e�t�s�/�i�c�o�n�.�p�n�g�'�,�
�
� � �o�u�t�p�u�t�:� �'�i�c�o�n�s�/�i�c�o�n�.�p�n�g�'�
�
�}�
�
����
�
�
�
�#�#�#� �ub�e�e�N
�
�
�
����t�y�p�e�s�c�r�i�p�t�
�
�{�
�
� � �d�a�t�a�:� �J�S�O�N�.�s�t�r�i�n�g�i�f�y�(�{� �k�e�y�:� �'�v�a�l�u�e�'� �}�,� �n�u�l�l�,� �2�)�,�
�
� � �o�u�t�p�u�t�:� �'�c�o�n�f�i�g�.�j�s�o�n�'�
�
�}�
�
����
�
�
�
�#�#� ��la�Ny�
�
�
�
�1�.� ��c�N�N(W�_�S
g�RhV/T�R�egbL�
�
�2�.� �nx�O�vh�vU_wQ g�QeQCgP�
�
�3�.� �,g0W�e�N_�v�[�Ny��v9h�vU_
�
�4�.� ����Q_�v�[�N ��d�e�s�t�� ��vU_
�
�
�
�#�#� ����S��
�
�
�
�M�I�T�
�
�
