Add video demos to README and remove duplicate webpack config

This commit is contained in:
hensm
2018-06-08 19:54:36 +01:00
parent 5678b73eb7
commit 79d71dcc31
2 changed files with 9 additions and 61 deletions

View File

@@ -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:
[<img width="200" src="https://img.youtube.com/vi/Ex9dWKYguEE/0.jpg" alt="fx_cast Netflix" />](https://www.youtube.com/watch?v=Ex9dWKYguEE)
[<img width="200" src="https://img.youtube.com/vi/16r8lQKeEX8/0.jpg" alt="fx_cast HTML5" />](https://www.youtube.com/watch?v=16r8lQKeEX8)

View File

@@ -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"
]
}
}
]
}
};