*
* See: http://webpack.github.io/docs/configuration.html#output-chunkfilename
*/
- chunkFilename: '[id].chunk.js',
+ chunkFilename: '[id].chunk.js'
- publicPath: '/client/'
+ },
+ externals: {
+ webtorrent: 'WebTorrent'
},
plugins: [
resourcePath: 'src'
},
- /**
- * Webpack Development Server configuration
- * Description: The webpack-dev-server is a little node.js Express server.
- * The server emits information about the compilation state to the client,
- * which reacts to those events.
- *
- * See: https://webpack.github.io/docs/webpack-dev-server.html
- */
- devServer: {
- port: METADATA.port,
- host: METADATA.host,
- historyApiFallback: true,
- watchOptions: {
- aggregateTimeout: 300,
- poll: 1000
- },
- outputPath: helpers.root('dist')
- },
-
/*
* Include polyfills or mocks for various node stuff
* Description: Node configuration