Skip to content

Instantly share code, notes, and snippets.

@mihir0x69
Created July 29, 2016 11:02
Show Gist options
  • Save mihir0x69/c393664b856ebe7bdc60e059d6f7bce4 to your computer and use it in GitHub Desktop.
Save mihir0x69/c393664b856ebe7bdc60e059d6f7bce4 to your computer and use it in GitHub Desktop.
tweaks for react+webpack project
window.$ = window.jQuery = require("jquery");
$.fn.progress = require('semantic-ui/dist/components/progress');
plugins: options.plugins.concat([
new webpack.ProvidePlugin({
// make fetch available
fetch: 'exports?self.fetch!whatwg-fetch',
$: "jquery",
jQuery: "jquery",
}),
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment