Skip to content

Instantly share code, notes, and snippets.

@silentworks
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silentworks/29c694173c099b886388 to your computer and use it in GitHub Desktop.
Save silentworks/29c694173c099b886388 to your computer and use it in GitHub Desktop.
// 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
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