mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2026-01-30 09:48:12 +01:00
fix(#29): source map issue
This commit is contained in:
parent
18fa5f9ed9
commit
23cc204dc4
@ -46,6 +46,8 @@ const getExtensionFileType = (browser) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
devtool: false, // https://github.com/webpack/webpack/issues/1194#issuecomment-560382342
|
||||||
|
|
||||||
mode: nodeEnv,
|
mode: nodeEnv,
|
||||||
|
|
||||||
entry: {
|
entry: {
|
||||||
@ -118,6 +120,8 @@ module.exports = {
|
|||||||
plugins: [
|
plugins: [
|
||||||
// Plugin to not generate js bundle for manifest entry
|
// Plugin to not generate js bundle for manifest entry
|
||||||
new WextManifestWebpackPlugin(),
|
new WextManifestWebpackPlugin(),
|
||||||
|
// Generate sourcemaps
|
||||||
|
new webpack.SourceMapDevToolPlugin({filename: false}),
|
||||||
new ForkTsCheckerWebpackPlugin(),
|
new ForkTsCheckerWebpackPlugin(),
|
||||||
// environmental variables
|
// environmental variables
|
||||||
new webpack.EnvironmentPlugin(['NODE_ENV', 'TARGET_BROWSER']),
|
new webpack.EnvironmentPlugin(['NODE_ENV', 'TARGET_BROWSER']),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user