Skip to content

Commit 6249cd4

Browse files
author
James Wigger
authored
Added readme file
1 parent 9574b6a commit 6249cd4

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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": "git@github.com: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+
```

0 commit comments

Comments
 (0)