File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ # Base-Mix-Helper
2+
3+ Mix standalone function for versioned assets outside of Laravel.
4+
5+ ## Installation
6+
7+ Add the following to your ` composer.json ` file:
8+
9+ ``` json
10+ "repositories" : [
11+ {
12+ "type" : " git" ,
13+ "url" :
" [email protected] :RootStudio/Base-Mix-Helper.git" 14+ }
15+ ],
16+ "require" : {
17+ "rootstudio/base-mix-helper" : " ^1.0" ,
18+ }
19+ ```
20+
21+ ## Usage
22+
23+ The mix helper should be used to call in static assets compiled with Laravel Mix. For example:
24+
25+ ``` html+php
26+ <?php require 'vendor/autoload.php' ?>
27+ <!doctype html>
28+ <html lang =" en" >
29+ <head >
30+ <meta charset =" utf-8" >
31+
32+ <title >Base NG</title >
33+
34+ <link rel =" stylesheet" href =" <?php echo mix('assets/css/global.css'); ?>" >
35+ </head >
36+
37+ <body >
38+ <!-- Page Content... -->
39+
40+ <script src =" <?php echo mix('assets/js/manifest.js'); ?>" ></script >
41+ <script src =" <?php echo mix('assets/js/vendor.js'); ?>" ></script >
42+ <script src =" <?php echo mix('assets/js/app.js'); ?>" ></script >
43+ </body >
44+ </html >
45+ ```
You can’t perform that action at this time.
0 commit comments