Last active
August 17, 2024 12:18
-
-
Save milose/3fda9d245ec015e40f55 to your computer and use it in GitHub Desktop.
Laravel Elixir boilerplate for Foundation 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var elixir = require('laravel-elixir'), | |
env = require('dotenv').load(); | |
var path = { | |
node: 'node_modules/', | |
foundation: 'foundation-sites/', | |
motionui: 'motion-ui/', | |
}; | |
elixir.config.sourcemaps = process.env.APP_DEBUG; | |
elixir(function(mix) { | |
mix.browserSync({ | |
proxy: 'localhost:8000', | |
notify: false | |
}); | |
/// app.js | |
mix.browserify('app.js'); | |
// sass | |
mix.sass('app.scss', null, { | |
includePaths: [ | |
elixir.config.assetsPath + '/sass/', | |
path.node + path.foundation + '/scss/', | |
path.node + path.motionui + '/src/', | |
] | |
}); | |
// top.js | |
mix.scripts([ | |
// | |
], 'public/js/top.js', './'); | |
// vendor.js | |
mix.scripts([ | |
// vendor | |
path.node + 'jquery/dist/jquery.js', | |
path.node + 'underscore/underscore.js', | |
path.node + 'what-input/what-input.js', | |
// foundation core | |
// path.bower + path.foundation + 'dist/foundation.js', | |
path.node + path.foundation + 'js/foundation.core.js', | |
path.node + path.foundation + 'js/foundation.util.mediaQuery.js', | |
// foundation plug-ins | |
path.node + path.foundation + 'js/foundation.util.box.js', | |
path.node + path.foundation + 'js/foundation.util.nest.js', | |
path.node + path.foundation + 'js/foundation.util.motion.js', | |
path.node + path.foundation + 'js/foundation.util.keyboard.js', | |
path.node + path.foundation + 'js/foundation.util.triggers.js', | |
path.node + path.foundation + 'js/foundation.abide.js', | |
path.node + path.foundation + 'js/foundation.dropdownMenu.js', | |
path.node + path.foundation + 'js/foundation.responsiveMenu.js', | |
path.node + path.foundation + 'js/foundation.responsiveToggle.js', | |
path.node + path.foundation + 'js/foundation.toggler.js', | |
path.node + path.motionui + 'dist/motion-ui.js', | |
], 'public/js/vendor.js', './'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment