Fix most (though not all) of our extension bugs.

I still can't figure out how to keep Webpack from making requests to the
injected site...
This commit is contained in:
David Wendt 2019-08-22 00:06:30 -04:00
parent de5a2c31c0
commit 385b9f807e
5 changed files with 5573 additions and 20 deletions

View File

@ -0,0 +1,4 @@
import "../../js-src/element";
//Currently, no code is exclusive to the Extension, so we just import the
//Element and that's that...

View File

@ -5,8 +5,9 @@
"description": "Puts Flash back on the web where it belongs.",
"content_scripts": [
{
"matches": ["*"],
"js": ["ruffle.js"]
"matches": ["<all_urls>"],
"js": ["dist/ruffle.js"]
}
]
],
"web_accessible_resources": ["dist/*"]
}

5549
web/extension/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -9,9 +9,8 @@
"devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.2.1",
"clean-webpack-plugin": "^3.0.0",
"webpack": "^4.29.4",
"webpack-cli": "^3.1.1",
"webpack": "^4.39.2",
"webpack-cli": "^3.3.7",
"webpack-dev-server": "^3.1.0"
}
}
}

View File

@ -12,10 +12,10 @@ module.exports = (env, argv) => {
console.log(`Building ${mode}...`);
return {
entry: path.resolve(__dirname, "www/bootstrap.js"),
entry: path.resolve(__dirname, "js/bootstrap.js"),
output: {
path: path.resolve(__dirname, "dist"),
filename: "index.js",
filename: "ruffle.js",
},
mode: mode,
plugins: [