1.0.0 • Published 9 years ago

laravel-elixir-bower-normalize v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

Laravel Elixir Bower Normalize

Install

$ npm install laravel-elixir-bower-normalize --save-dev

Example

bower.json

{
  "name": "laravel-elixir-bower-normalize",
  "version": "1.0.0",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "bootstrap": "~3.3.5"
  },
  "overrides": {
    "jquery": {
      "main": [
        "dist/jquery.js"
      ],
      "normalize": {
        "": "*.js"
      }
    },
    "bootstrap": {
      "main": [
        "dist/css/bootstrap.min.css",
        "dist/css/bootstrap.css",
        "dist/js/bootstrap.min.js",
        "dist/js/bootstrap.js",
        "dist/fonts/*"
      ],
      "normalize": {
        "css": "*.css",
        "js": "*.js",
        "fonts": [
          "*.eot",
          "*.svg",
          "*.ttf",
          "*.woff",
          "*.woff2"
        ]
      }
    }
  }
}

gulpfile.js

var elixir = require('laravel-elixir');

require('laravel-elixir-bower-normalize');

elixir(function (mix) {

    // Bower dependencies
    mix.bower({
        src: './bower_components',
        output: './resources/assets/vendor'
    });
});