badges: false
jumbotron: false
thumbnails: true
- alerts: false
+ alerts: true
progress-bars: true
media: true
list-group: false
panels: false
wells: false
- responsive-embed: false
+ responsive-embed: true
close: false
# Components w/ JavaScript
### Bootstrap scripts
scripts:
transition: false
- alert: false
+ alert: true
button: false
carousel: false
collapse: false
root: helpers.root('src'),
// remove other default values
- modulesDirectories: [ 'node_modules' ]
+ modulesDirectories: [ 'node_modules', 'node_modules/blueimp-file-upload/js/vendor' ],
+
+ packageAlias: 'browser'
},
new webpack.ProvidePlugin({
jQuery: 'jquery',
$: 'jquery',
- jquery: 'jquery'
+ jquery: 'jquery',
+ WebTorrent: 'webtorrent/webtorrent.min'
})
],
node: {
global: 'window',
crypto: 'empty',
+ fs: 'empty',
+ events: true,
module: false,
clearImmediate: false,
setImmediate: false
/**
* Webpack Plugins
*/
-const ProvidePlugin = require('webpack/lib/ProvidePlugin')
const DefinePlugin = require('webpack/lib/DefinePlugin')
const DedupePlugin = require('webpack/lib/optimize/DedupePlugin')
const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin')
import 'jquery';
import 'bootstrap-loader';
+import 'jquery.ui.widget/jquery.ui.widget';
+import 'blueimp-file-upload';
+// TODO: build webtorrent with webpack when https://github.com/webpack/webpack/pull/1931 will be merged
+import 'webtorrent/webtorrent.min';