From 79d71dcc316388ed9a8ace9ab5f47d22be8a7fbf Mon Sep 17 00:00:00 2001 From: hensm Date: Fri, 8 Jun 2018 19:54:36 +0100 Subject: [PATCH] Add video demos to README and remove duplicate webpack config --- README.md | 9 +++++++ webpack.config.js | 61 ----------------------------------------------- 2 files changed, 9 insertions(+), 61 deletions(-) delete mode 100644 webpack.config.js diff --git a/README.md b/README.md index 4138761..73ba583 100644 --- a/README.md +++ b/README.md @@ -39,3 +39,12 @@ Installer scripts aren't written yet, so registering the native messaging manife Extension can be loaded from `about:debugging` as a temporary extension. +Most sites won't load the cast API unless the browser presents itself as Chrome. The plan is to spoof the user agent string for a whitelist of cast-enabled sites, but that isn't implemented yet. You can workaround this by setting it manually or using a [third-party extension](https://addons.mozilla.org/en-US/firefox/search/?q=user+agent). + + +## Video Demos + +Netflix / HTML5: + +[fx_cast Netflix](https://www.youtube.com/watch?v=Ex9dWKYguEE) +[fx_cast HTML5](https://www.youtube.com/watch?v=16r8lQKeEX8) diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index 736b9ec..0000000 --- a/webpack.config.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; - -const path = require("path"); -const webpack = require("webpack"); -const webpack_copy = require("copy-webpack-plugin"); - - -const include_path = path.resolve(__dirname, "src"); -const output_path = path.resolve(__dirname, "dist"); - -module.exports = { - entry: { - "main" : `${include_path}/ext/main.js` - , "popup/bundle" : `${include_path}/ext/popup/index.js` - , "shim/bundle" : `${include_path}/ext/shim/index.js` - , "content" : `${include_path}/ext/content.js` - , "contentSetup" : `${include_path}/ext/contentSetup.js` - , "mediaCast" : `${include_path}/ext/mediaCast.js` - , "compat/youtube" : `${include_path}/ext/compat/youtube.js` - } - , output: { - filename: "[name].js" - , path: `${output_path}/ext` - } - , plugins: [ - new webpack.optimize.UglifyJsPlugin() - //, new webpack.optimize.CommonsChunkPlugin("lib/init.bundle") - , new webpack.DefinePlugin({ - "process.env.NODE_ENV": `"production"` - }) - - // Ext copy assets - , new webpack_copy([{ - from: `${include_path}/ext` - , to: `${output_path}/ext` - , ignore: [ "*.js" ] - }, { - from: `${include_path}` - , to: `${output_path}` - , ignore: [ "app" ] - }]) - ] - , devtool: "source-map" - , module: { - loaders: [ - { - test: /\.js/ - , include: `${include_path}/ext` - , loader: "babel-loader" - , options: { - presets: [ "react" ] - , plugins: [ - "transform-class-properties" - , "transform-do-expressions" - , "transform-object-rest-spread" - ] - } - } - ] - } -};