]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/config/webpack.dev.js
Client: fix ng2 bootstrap version that breaks change with patch versions...
[github/Chocobozzz/PeerTube.git] / client / config / webpack.dev.js
index 19768d872376afc8aa642dc5a1ccf86a7b5f37c8..50193bf58f18c7f2e61e4eb48c271083853c5f27 100644 (file)
@@ -81,10 +81,12 @@ module.exports = webpackMerge(commonConfig, {
      *
      * See: http://webpack.github.io/docs/configuration.html#output-chunkfilename
      */
-    chunkFilename: '[id].chunk.js',
+    chunkFilename: '[id].chunk.js'
 
-    publicPath: '/client/'
+  },
 
+  externals: {
+    webtorrent: 'WebTorrent'
   },
 
   plugins: [
@@ -122,25 +124,6 @@ module.exports = webpackMerge(commonConfig, {
     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