diff --git a/config-overrides.js b/config-overrides.js index d9e6789..136f2d4 100644 --- a/config-overrides.js +++ b/config-overrides.js @@ -20,8 +20,8 @@ function override(config, env) { content: paths.appSrc + "/content.js", }; // Change output filename template to get rid of hash there - config.output.filename = "static/js/[name].js"; - config.output.assetModuleFilename = "static/media/[name][ext]"; + config.output.filename = "[name].js"; + config.output.assetModuleFilename = "media/[name][ext]"; // Disable built-in SplitChunksPlugin config.optimization.splitChunks = { cacheGroups: { default: false }, diff --git a/dist/chrome/asset-manifest.json b/dist/chrome/asset-manifest.json index 42d861f..44b0ff6 100644 --- a/dist/chrome/asset-manifest.json +++ b/dist/chrome/asset-manifest.json @@ -1,8 +1,8 @@ { - "popup.js": "/static/js/popup.js", - "options.js": "/static/js/options.js", - "background.js": "/static/js/background.js", - "content.js": "/static/js/content.js", + "popup.js": "/popup.js", + "options.js": "/options.js", + "background.js": "/background.js", + "content.js": "/content.js", "content.html": "/content.html", "options.html": "/options.html", "popup.html": "/popup.html" diff --git a/dist/chrome/static/js/background.js b/dist/chrome/background.js similarity index 100% rename from dist/chrome/static/js/background.js rename to dist/chrome/background.js diff --git a/dist/chrome/static/js/background.js.LICENSE.txt b/dist/chrome/background.js.LICENSE.txt similarity index 100% rename from dist/chrome/static/js/background.js.LICENSE.txt rename to dist/chrome/background.js.LICENSE.txt diff --git a/dist/chrome/content.html b/dist/chrome/content.html index a4b720d..4619959 100644 --- a/dist/chrome/content.html +++ b/dist/chrome/content.html @@ -1 +1 @@ -KISS Translator

React is a JavaScript library for building user interfaces.

React is a JavaScript library for building user interfaces.

React is a JavaScript library for building user interfaces.

React is a JavaScript library for building user interfaces.

React is a JavaScript library for building user interfaces.

\ No newline at end of file +KISS Translator

React is a JavaScript library for building user interfaces.

React is a JavaScript library for building user interfaces.

React is a JavaScript library for building user interfaces.

React is a JavaScript library for building user interfaces.

React is a JavaScript library for building user interfaces.

\ No newline at end of file diff --git a/dist/chrome/static/js/content.js b/dist/chrome/content.js similarity index 100% rename from dist/chrome/static/js/content.js rename to dist/chrome/content.js diff --git a/dist/chrome/static/js/content.js.LICENSE.txt b/dist/chrome/content.js.LICENSE.txt similarity index 100% rename from dist/chrome/static/js/content.js.LICENSE.txt rename to dist/chrome/content.js.LICENSE.txt diff --git a/dist/chrome/manifest.json b/dist/chrome/manifest.json index 9bc9bc0..db94203 100644 --- a/dist/chrome/manifest.json +++ b/dist/chrome/manifest.json @@ -7,12 +7,12 @@ "author": "Gabe", "homepage_url": "https://github.com/fishjar/kiss-translator", "background": { - "service_worker": "static/js/background.js", + "service_worker": "background.js", "type": "module" }, "content_scripts": [ { - "js": ["static/js/content.js"], + "js": ["content.js"], "matches": [""] } ], diff --git a/dist/chrome/options.html b/dist/chrome/options.html index bac9b33..bb8e424 100644 --- a/dist/chrome/options.html +++ b/dist/chrome/options.html @@ -1 +1 @@ -KISS Translator
\ No newline at end of file +KISS Translator
\ No newline at end of file diff --git a/dist/chrome/static/js/options.js b/dist/chrome/options.js similarity index 100% rename from dist/chrome/static/js/options.js rename to dist/chrome/options.js diff --git a/dist/chrome/static/js/options.js.LICENSE.txt b/dist/chrome/options.js.LICENSE.txt similarity index 100% rename from dist/chrome/static/js/options.js.LICENSE.txt rename to dist/chrome/options.js.LICENSE.txt diff --git a/dist/chrome/popup.html b/dist/chrome/popup.html index 9b8883c..2b62d4e 100644 --- a/dist/chrome/popup.html +++ b/dist/chrome/popup.html @@ -1 +1 @@ -KISS Translator
\ No newline at end of file +KISS Translator
\ No newline at end of file diff --git a/dist/chrome/static/js/popup.js b/dist/chrome/popup.js similarity index 100% rename from dist/chrome/static/js/popup.js rename to dist/chrome/popup.js diff --git a/dist/chrome/static/js/popup.js.LICENSE.txt b/dist/chrome/popup.js.LICENSE.txt similarity index 100% rename from dist/chrome/static/js/popup.js.LICENSE.txt rename to dist/chrome/popup.js.LICENSE.txt diff --git a/dist/edge/asset-manifest.json b/dist/edge/asset-manifest.json index 42d861f..44b0ff6 100644 --- a/dist/edge/asset-manifest.json +++ b/dist/edge/asset-manifest.json @@ -1,8 +1,8 @@ { - "popup.js": "/static/js/popup.js", - "options.js": "/static/js/options.js", - "background.js": "/static/js/background.js", - "content.js": "/static/js/content.js", + "popup.js": "/popup.js", + "options.js": "/options.js", + "background.js": "/background.js", + "content.js": "/content.js", "content.html": "/content.html", "options.html": "/options.html", "popup.html": "/popup.html" diff --git a/dist/edge/static/js/background.js b/dist/edge/background.js similarity index 100% rename from dist/edge/static/js/background.js rename to dist/edge/background.js diff --git a/dist/edge/static/js/background.js.LICENSE.txt b/dist/edge/background.js.LICENSE.txt similarity index 100% rename from dist/edge/static/js/background.js.LICENSE.txt rename to dist/edge/background.js.LICENSE.txt diff --git a/dist/edge/content.html b/dist/edge/content.html index a4b720d..4619959 100644 --- a/dist/edge/content.html +++ b/dist/edge/content.html @@ -1 +1 @@ -KISS Translator

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。
\ No newline at end of file +KISS Translator

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。
\ No newline at end of file diff --git a/dist/edge/static/js/content.js b/dist/edge/content.js similarity index 100% rename from dist/edge/static/js/content.js rename to dist/edge/content.js diff --git a/dist/edge/static/js/content.js.LICENSE.txt b/dist/edge/content.js.LICENSE.txt similarity index 100% rename from dist/edge/static/js/content.js.LICENSE.txt rename to dist/edge/content.js.LICENSE.txt diff --git a/dist/edge/manifest.json b/dist/edge/manifest.json index 9bc9bc0..db94203 100644 --- a/dist/edge/manifest.json +++ b/dist/edge/manifest.json @@ -7,12 +7,12 @@ "author": "Gabe", "homepage_url": "https://github.com/fishjar/kiss-translator", "background": { - "service_worker": "static/js/background.js", + "service_worker": "background.js", "type": "module" }, "content_scripts": [ { - "js": ["static/js/content.js"], + "js": ["content.js"], "matches": [""] } ], diff --git a/dist/edge/options.html b/dist/edge/options.html index bac9b33..bb8e424 100644 --- a/dist/edge/options.html +++ b/dist/edge/options.html @@ -1 +1 @@ -KISS Translator
\ No newline at end of file +KISS Translator
\ No newline at end of file diff --git a/dist/edge/static/js/options.js b/dist/edge/options.js similarity index 100% rename from dist/edge/static/js/options.js rename to dist/edge/options.js diff --git a/dist/edge/static/js/options.js.LICENSE.txt b/dist/edge/options.js.LICENSE.txt similarity index 100% rename from dist/edge/static/js/options.js.LICENSE.txt rename to dist/edge/options.js.LICENSE.txt diff --git a/dist/edge/popup.html b/dist/edge/popup.html index 9b8883c..2b62d4e 100644 --- a/dist/edge/popup.html +++ b/dist/edge/popup.html @@ -1 +1 @@ -KISS Translator
\ No newline at end of file +KISS Translator
\ No newline at end of file diff --git a/dist/edge/static/js/popup.js b/dist/edge/popup.js similarity index 100% rename from dist/edge/static/js/popup.js rename to dist/edge/popup.js diff --git a/dist/edge/static/js/popup.js.LICENSE.txt b/dist/edge/popup.js.LICENSE.txt similarity index 100% rename from dist/edge/static/js/popup.js.LICENSE.txt rename to dist/edge/popup.js.LICENSE.txt diff --git a/dist/firefox/asset-manifest.json b/dist/firefox/asset-manifest.json index 42d861f..44b0ff6 100644 --- a/dist/firefox/asset-manifest.json +++ b/dist/firefox/asset-manifest.json @@ -1,8 +1,8 @@ { - "popup.js": "/static/js/popup.js", - "options.js": "/static/js/options.js", - "background.js": "/static/js/background.js", - "content.js": "/static/js/content.js", + "popup.js": "/popup.js", + "options.js": "/options.js", + "background.js": "/background.js", + "content.js": "/content.js", "content.html": "/content.html", "options.html": "/options.html", "popup.html": "/popup.html" diff --git a/dist/firefox/static/js/background.js b/dist/firefox/background.js similarity index 100% rename from dist/firefox/static/js/background.js rename to dist/firefox/background.js diff --git a/dist/firefox/static/js/background.js.LICENSE.txt b/dist/firefox/background.js.LICENSE.txt similarity index 100% rename from dist/firefox/static/js/background.js.LICENSE.txt rename to dist/firefox/background.js.LICENSE.txt diff --git a/dist/firefox/content.html b/dist/firefox/content.html index a4b720d..4619959 100644 --- a/dist/firefox/content.html +++ b/dist/firefox/content.html @@ -1 +1 @@ -KISS Translator

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。
\ No newline at end of file +KISS Translator

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据变动时 React 能高效更新并渲染合适的组件。
  • 以声明式编写 UI,可以让你的代码更加可靠,且方便调试。
\ No newline at end of file diff --git a/dist/firefox/static/js/content.js b/dist/firefox/content.js similarity index 100% rename from dist/firefox/static/js/content.js rename to dist/firefox/content.js diff --git a/dist/firefox/static/js/content.js.LICENSE.txt b/dist/firefox/content.js.LICENSE.txt similarity index 100% rename from dist/firefox/static/js/content.js.LICENSE.txt rename to dist/firefox/content.js.LICENSE.txt diff --git a/dist/firefox/manifest.json b/dist/firefox/manifest.json index 44df540..247364c 100644 --- a/dist/firefox/manifest.json +++ b/dist/firefox/manifest.json @@ -7,11 +7,11 @@ "author": "Gabe", "homepage_url": "https://github.com/fishjar/kiss-translator", "background": { - "scripts": ["static/js/background.js"] + "scripts": ["background.js"] }, "content_scripts": [ { - "js": ["static/js/content.js"], + "js": ["content.js"], "matches": [""] } ], diff --git a/dist/firefox/options.html b/dist/firefox/options.html index bac9b33..bb8e424 100644 --- a/dist/firefox/options.html +++ b/dist/firefox/options.html @@ -1 +1 @@ -KISS Translator
\ No newline at end of file +KISS Translator
\ No newline at end of file diff --git a/dist/firefox/static/js/options.js b/dist/firefox/options.js similarity index 100% rename from dist/firefox/static/js/options.js rename to dist/firefox/options.js diff --git a/dist/firefox/static/js/options.js.LICENSE.txt b/dist/firefox/options.js.LICENSE.txt similarity index 100% rename from dist/firefox/static/js/options.js.LICENSE.txt rename to dist/firefox/options.js.LICENSE.txt diff --git a/dist/firefox/popup.html b/dist/firefox/popup.html index 9b8883c..2b62d4e 100644 --- a/dist/firefox/popup.html +++ b/dist/firefox/popup.html @@ -1 +1 @@ -KISS Translator
\ No newline at end of file +KISS Translator
\ No newline at end of file diff --git a/dist/firefox/static/js/popup.js b/dist/firefox/popup.js similarity index 100% rename from dist/firefox/static/js/popup.js rename to dist/firefox/popup.js diff --git a/dist/firefox/static/js/popup.js.LICENSE.txt b/dist/firefox/popup.js.LICENSE.txt similarity index 100% rename from dist/firefox/static/js/popup.js.LICENSE.txt rename to dist/firefox/popup.js.LICENSE.txt diff --git a/package.json b/package.json index fcdff5c..de0c4d1 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,9 @@ }, "scripts": { "start": "react-app-rewired start", - "build": "BUILD_PATH=./build/chrome REACT_APP_BROWSER=chrome react-app-rewired build", - "build:edge": "BUILD_PATH=./build/edge REACT_APP_BROWSER=edge react-app-rewired build", - "build:firefox": "BUILD_PATH=./build/firefox REACT_APP_BROWSER=firefox react-app-rewired build && cp ./manifest.firefox.json ./build/firefox/manifest.json", + "build": "BUILD_PATH=./build/chrome REACT_APP_BROWSER=chrome react-app-rewired build && rm ./build/chrome/manifest.firefox.json", + "build:edge": "BUILD_PATH=./build/edge REACT_APP_BROWSER=edge react-app-rewired build && rm ./build/edge/manifest.firefox.json", + "build:firefox": "BUILD_PATH=./build/firefox REACT_APP_BROWSER=firefox react-app-rewired build && rm ./build/firefox/manifest.json && mv ./build/firefox/manifest.firefox.json ./build/firefox/manifest.json", "build:all": "yarn build && yarn build:edge && yarn build:firefox", "dist": "yarn build:all && rm -r dist && cp -r build dist", "test": "react-app-rewired test", diff --git a/manifest.firefox.json b/public/manifest.firefox.json similarity index 89% rename from manifest.firefox.json rename to public/manifest.firefox.json index 44df540..247364c 100644 --- a/manifest.firefox.json +++ b/public/manifest.firefox.json @@ -7,11 +7,11 @@ "author": "Gabe", "homepage_url": "https://github.com/fishjar/kiss-translator", "background": { - "scripts": ["static/js/background.js"] + "scripts": ["background.js"] }, "content_scripts": [ { - "js": ["static/js/content.js"], + "js": ["content.js"], "matches": [""] } ], diff --git a/public/manifest.json b/public/manifest.json index 9bc9bc0..db94203 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -7,12 +7,12 @@ "author": "Gabe", "homepage_url": "https://github.com/fishjar/kiss-translator", "background": { - "service_worker": "static/js/background.js", + "service_worker": "background.js", "type": "module" }, "content_scripts": [ { - "js": ["static/js/content.js"], + "js": ["content.js"], "matches": [""] } ],