Skip to content

Commit 1a7cbe4

Browse files
committed
edge
1 parent 8e3fcce commit 1a7cbe4

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

flake.lock

+18-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
{
22
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09";
3+
inputs.nixpkgsEdge.url = "github:leo60228/nixpkgs/edge";
34
inputs.flake-utils.url = "github:numtide/flake-utils";
45

5-
outputs = { nixpkgs, flake-utils, ... }:
6+
outputs = { nixpkgs, nixpkgsEdge, flake-utils, ... }:
67
flake-utils.lib.eachDefaultSystem (system:
78
let
89
pkgs = nixpkgs.legacyPackages.${system};
10+
pkgsEdge = import nixpkgsEdge {
11+
inherit system;
12+
config.allowUnfree = true;
13+
};
914
in {
1015
devShell = pkgs.mkShell {
11-
nativeBuildInputs = with pkgs; [ nodejs_latest nodePackages_latest.yarn firefox chromium ];
16+
nativeBuildInputs = with pkgs; [ nodejs_latest nodePackages_latest.yarn firefox chromium pkgsEdge.microsoft-edge-beta ];
1217
};
1318
}
1419
);

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"build:src": "shopt -s extglob\nrm -f addon/web-ext-artifacts/source.tar.gz && tar -czvf addon/web-ext-artifacts/source.tar.gz !(node_modules|addon) addon/!(web-ext-artifacts|*.js*)",
1717
"start:firefox": "webpack watch",
1818
"start:chromium": "webpack watch --env chromium",
19+
"start:edge": "webpack watch --env chromium=microsoft-edge-beta",
1920
"start": "yarn run start:firefox"
2021
},
2122
"author": "leo60228",

webpack.config.mjs

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ const config = env => ({
2020
plugins: [
2121
new WebExtWebpackPlugin(addonDir, env.chromium ? {
2222
target: 'chromium',
23+
args: ['--force-device-scale-factor=2'],
24+
chromiumBinary: env.chromium === true ? undefined : env.chromium,
2325
startUrl: ['www.blaseball.com']
2426
} : {
2527
target: 'firefox-desktop',

0 commit comments

Comments
 (0)