Last active
August 29, 2015 14:04
-
-
Save silentworks/29c694173c099b886388 to your computer and use it in GitHub Desktop.
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
// Get all required dependencies | |
// Run Modernizr on our page | |
require('imports?this=>window!../bower_components/modernizr/modernizr'); | |
// Foundation | |
var foundation = require('../bower_components/foundation/js/foundation'); | |
// FlightJS |
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 webpack = require('webpack'); | |
module.exports = { | |
entry: './js/app', | |
output: { | |
path: __dirname + '/dist', | |
filename: 'bundle.js' | |
}, | |
resolve: { | |
modulesDirectories: ['node_modules', 'bower_components'] | |
}, | |
externals: [ | |
{ | |
jquery: "jQuery" | |
} | |
], | |
plugins: [ | |
new webpack.ProvidePlugin({ | |
$: 'jquery', | |
jQuery: 'jquery' | |
}), | |
new webpack.ResolverPlugin( | |
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('bower.json', ['main']) | |
) | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment