-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Extended extension.config.js (#188)
- Loading branch information
1 parent
cbf2c9b
commit 1c68c29
Showing
25 changed files
with
205 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
EXTENSION_ENV= | ||
EXPERIMENTAL_ERRORS_PLUGIN= | ||
EXPERIMENTAL_EXTENSION_RESOLVER_PLUGIN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,36 @@ | ||
/** @type {import('extension-develop').FileConfig} */ | ||
/** @type {import('extension').FileConfig} */ | ||
module.exports = { | ||
config: (config) => { | ||
config.module.rules.push( | ||
{ | ||
test: /\.svg$/i, | ||
type: 'asset', | ||
// *.svg?url | ||
resourceQuery: /url/ | ||
}, | ||
{ | ||
test: /\.svg$/i, | ||
issuer: /\.[jt]sx?$/, | ||
// exclude react component if *.svg?url | ||
resourceQuery: {not: [/url/]}, | ||
use: ['@svgr/webpack'] | ||
} | ||
) | ||
|
||
return config | ||
} | ||
browsers: { | ||
chrome: { | ||
// noOpen?: boolean | ||
// userDataDir?: string | ||
// profile?: string | ||
// preferences?: Record<string, any> | ||
// browserFlags?: string[] | ||
// startingUrl?: string | ||
// chromiumBinary?: string | ||
startingUrl: 'https://extension.js.org' | ||
}, | ||
firefox: { | ||
// noOpen?: boolean | ||
// userDataDir?: string | ||
// profile?: string | ||
// preferences?: Record<string, any> | ||
// browserFlags?: string[] | ||
// startingUrl?: string | ||
// geckoBinary?: string | ||
startingUrl: 'about:debugging#/runtime/this-firefox' | ||
} | ||
}, | ||
development: { | ||
// TBD | ||
// browser: DevOptions['browser'] | ||
// port?: number | ||
// browser: 'firefox', // can be an array | ||
// zipFilename?: string | ||
// zip?: boolean | ||
// zipSource?: boolean | ||
// polyfill?: boolean | ||
}, | ||
deployment: {} | ||
} |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.