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