laravel-elixir-wiredep
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -24,4 +24,4 @@ var gulp = require('gulp'); | ||
replace: { | ||
js: '<script src="{{filePath}}"></script>', | ||
css: '<link rel="stylesheet" href="{{filePath}}" />' | ||
js: '<script src="{{ asset(\'{{filePath}}\') }}"></script>', | ||
css: '<link rel="stylesheet" href="{{ asset(\'{{filePath}}\') }}" />' | ||
} | ||
@@ -28,0 +28,0 @@ } |
{ | ||
"name": "laravel-elixir-wiredep", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Laravel Elixir Wiredep extension", | ||
@@ -9,3 +9,3 @@ "main": "index.js", | ||
}, | ||
"repository": { | ||
"repository": { | ||
"type": "git", | ||
@@ -12,0 +12,0 @@ "url": "https://github.com/FabioAntunes/laravel-elixir-wiredep" |
@@ -14,3 +14,3 @@ #Laravel-Elixir-Wiredep | ||
``` | ||
```javascript | ||
var elixir = require('laravel-elixir'); | ||
@@ -27,3 +27,3 @@ | ||
``` | ||
```html | ||
<!doctype html> | ||
@@ -46,3 +46,3 @@ <html> | ||
``` | ||
```javascript | ||
mix.wiredep({src: 'master.blade.php'}) | ||
@@ -59,3 +59,3 @@ ``` | ||
Just create a `.bowerrc` file in the root of your project folder and specify the destination folder inside the public folder, like so: | ||
``` | ||
```javascript | ||
{ | ||
@@ -70,7 +70,7 @@ "directory" : "public/bower_components" | ||
These are the default wrapper options: | ||
``` | ||
```javascript | ||
{ | ||
baseDir: 'resources/views/', //the folder for your views | ||
src: false, //if you just want to inject dependencies on one file just specify it's source, relative to baseDir | ||
searchLevel: '**/*.php', //How many search levels you want | ||
searchLevel: '**/*.php' //How many search levels you want | ||
@@ -82,3 +82,3 @@ } | ||
This is an example of a Gulp file that Wiredeps **only** your javascript dependencies and compiles your custom Sass file into the `resources/views/master.blade.php`: | ||
``` | ||
```javascript | ||
var elixir = require('laravel-elixir'); | ||
@@ -85,0 +85,0 @@ require('laravel-elixir-wiredep'); |
5533