mirror of
https://github.com/jambonz/chrome-extension-dialer.git
synced 2026-01-25 02:08:05 +00:00
wip
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "webrtc-chrome-ext",
|
"name": "webrtc-chrome-ext",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/react": "^2.8.0",
|
"@chakra-ui/react": "^2.8.0",
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "1.0.5",
|
|
||||||
"manifest_version": 3,
|
|
||||||
"name": "jambonz webrtc phone",
|
|
||||||
"description": "jambonz webrtc phone",
|
|
||||||
"action": {
|
|
||||||
"default_title": "jambonz webrtc phone"
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"service_worker": "background/index.js"
|
|
||||||
},
|
|
||||||
"permissions": ["storage"],
|
|
||||||
"host_permissions": ["https://*/*"],
|
|
||||||
"icons": {
|
|
||||||
"16": "icons/icon.png",
|
|
||||||
"48": "icons/icon.png",
|
|
||||||
"128": "icons/icon.png",
|
|
||||||
"192": "icons/icon192.png",
|
|
||||||
"384": "icons/icon384.png",
|
|
||||||
"512": "icons/icon512.png",
|
|
||||||
"1024": "icons/icon1024.png"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,8 +1,23 @@
|
|||||||
{
|
{
|
||||||
"short_name": "Jambonz WebPhone",
|
"version": "1.0.6",
|
||||||
"name": "Jambonz WebPhone",
|
"manifest_version": 3,
|
||||||
"start_url": ".",
|
"name": "jambonz webrtc phone",
|
||||||
"display": "standalone",
|
"description": "jambonz webrtc phone",
|
||||||
"theme_color": "#000000",
|
"action": {
|
||||||
"background_color": "#ffffff"
|
"default_title": "jambonz webrtc phone"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"service_worker": "background/index.js"
|
||||||
|
},
|
||||||
|
"permissions": ["storage"],
|
||||||
|
"host_permissions": ["https://*/*"],
|
||||||
|
"icons": {
|
||||||
|
"16": "icons/icon.png",
|
||||||
|
"48": "icons/icon.png",
|
||||||
|
"128": "icons/icon.png",
|
||||||
|
"192": "icons/icon192.png",
|
||||||
|
"384": "icons/icon384.png",
|
||||||
|
"512": "icons/icon512.png",
|
||||||
|
"1024": "icons/icon1024.png"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,34 +3,34 @@ const HTMLPlugin = require("html-webpack-plugin");
|
|||||||
const CopyPlugin = require("copy-webpack-plugin");
|
const CopyPlugin = require("copy-webpack-plugin");
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
{
|
// {
|
||||||
entry: "./src/content/index.tsx",
|
// entry: "./src/content/index.tsx",
|
||||||
target: "web",
|
// target: "web",
|
||||||
mode: "production",
|
// mode: "production",
|
||||||
output: {
|
// output: {
|
||||||
path: path.join(__dirname, "dist"),
|
// path: path.join(__dirname, "dist"),
|
||||||
filename: "js/content.js",
|
// filename: "js/content.js",
|
||||||
},
|
// },
|
||||||
module: {
|
// module: {
|
||||||
rules: [
|
// rules: [
|
||||||
{
|
// {
|
||||||
test: /\.tsx?$/,
|
// test: /\.tsx?$/,
|
||||||
use: [
|
// use: [
|
||||||
{
|
// {
|
||||||
loader: "ts-loader",
|
// loader: "ts-loader",
|
||||||
options: {
|
// options: {
|
||||||
compilerOptions: { noEmit: false },
|
// compilerOptions: { noEmit: false },
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
exclude: /node_modules/,
|
// exclude: /node_modules/,
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
resolve: {
|
// resolve: {
|
||||||
extensions: [".ts", ".tsx", ".js"],
|
// extensions: [".ts", ".tsx", ".js"],
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
entry: "./src/background/index.ts",
|
entry: "./src/background/index.ts",
|
||||||
target: "web",
|
target: "web",
|
||||||
@@ -59,68 +59,6 @@ module.exports = [
|
|||||||
extensions: [".ts", ".tsx", ".js"],
|
extensions: [".ts", ".tsx", ".js"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
entry: {
|
|
||||||
index: "./src/index.tsx",
|
|
||||||
},
|
|
||||||
mode: "production",
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.tsx?$/,
|
|
||||||
use: [
|
|
||||||
{
|
|
||||||
loader: "ts-loader",
|
|
||||||
options: {
|
|
||||||
compilerOptions: { noEmit: false },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
exclude: /node_modules/,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
exclude: /node_modules/,
|
|
||||||
test: /\.css$/i,
|
|
||||||
use: ["style-loader", "css-loader"],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.s[ac]ss$/i,
|
|
||||||
use: [
|
|
||||||
// Creates `style` nodes from JS strings
|
|
||||||
"style-loader",
|
|
||||||
// Translates CSS into CommonJS
|
|
||||||
"css-loader",
|
|
||||||
// Compiles Sass to CSS
|
|
||||||
"sass-loader",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.txt$/i,
|
|
||||||
type: "asset/source",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
new CopyPlugin({
|
|
||||||
patterns: [{ from: "public", to: ".." }],
|
|
||||||
}),
|
|
||||||
...getHtmlPlugins(["index"]),
|
|
||||||
],
|
|
||||||
resolve: {
|
|
||||||
alias: {
|
|
||||||
src: path.resolve(__dirname, "src/"),
|
|
||||||
},
|
|
||||||
extensions: [".tsx", ".ts", ".js", ".txt"],
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
path: path.join(__dirname, "dist/js"),
|
|
||||||
filename: "[name].js",
|
|
||||||
},
|
|
||||||
performance: {
|
|
||||||
maxEntrypointSize: 512000,
|
|
||||||
maxAssetSize: 512000,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
entry: {
|
entry: {
|
||||||
index: "./src/window/index.tsx",
|
index: "./src/window/index.tsx",
|
||||||
@@ -162,7 +100,12 @@ module.exports = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
plugins: [...getHtmlPlugins(["index"])],
|
plugins: [
|
||||||
|
new CopyPlugin({
|
||||||
|
patterns: [{ from: "public", to: ".." }],
|
||||||
|
}),
|
||||||
|
...getHtmlPlugins(["index"]),
|
||||||
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
src: path.resolve(__dirname, "src/"),
|
src: path.resolve(__dirname, "src/"),
|
||||||
|
|||||||
Reference in New Issue
Block a user