--- /dev/null
+import Foundation from '../foundation.core';
-!function($) {
-
"use strict";
+import $ from 'jquery';
var FOUNDATION_VERSION = '6.3.1';
// Global Foundation object
return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
}
-}(jQuery);
+export default Foundation;
"array-uniq": "^1.0.2",
"autoprefixer": "^6.5.3",
"babel-core": "^6.3.26",
+ "babel-loader": "^6.2.10",
"babel-plugin-transform-es2015-arrow-functions": "^6.3.13",
"babel-plugin-transform-es2015-block-scoped-functions": "^6.3.13",
"babel-plugin-transform-es2015-block-scoping": "^6.4.0",
"touch": "^1.0.0",
"vinyl": "^2.0.1",
"vinyl-source-stream": "^1.1.0",
+ "webpack": "^2.2.0-rc.3",
"yargs": "^6.5.0"
},
"engines": {
--- /dev/null
+module.exports = {
+ entry: "./js/entries/all.js",
+ output: {
+ path: './_build/assets/js/',
+ filename: "foundation.js"
+ },
+ externals: {
+ jquery: 'jQuery'
+ },
+ module: {
+ loaders: [
+ ],
+ rules: [
+ // JS LOADER
+ // Reference: https://github.com/babel/babel-loader
+ // Transpile .js files using babel-loader
+ // Compiles ES6 and ES7 into ES5 code
+ {
+ test: /\.js$/,
+ use: [
+ {
+ loader: 'babel-loader',
+ }
+ ],
+ }
+ ]
+ }
+};