mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Add video demos to README and remove duplicate webpack config
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user