mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2025-10-07 07:22:37 +02:00
fix(29): source mapping issue
This commit is contained in:
parent
9a8f575867
commit
dcfa24d37c
@ -41,6 +41,8 @@ const getExtensionFileType = (browser) => {
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
devtool: false, // https://github.com/webpack/webpack/issues/1194#issuecomment-560382342
|
||||
|
||||
mode: nodeEnv,
|
||||
|
||||
entry: {
|
||||
@ -122,7 +124,11 @@ module.exports = {
|
||||
|
||||
plugins: [
|
||||
new webpack.ProgressPlugin(),
|
||||
// Generate manifest.json
|
||||
new WextManifestWebpackPlugin(),
|
||||
// Generate sourcemaps
|
||||
new webpack.SourceMapDevToolPlugin({filename: false}),
|
||||
// Remove style entries js bundle
|
||||
new FixStyleOnlyEntriesPlugin({silent: true}),
|
||||
new webpack.EnvironmentPlugin(['NODE_ENV', 'TARGET_BROWSER']),
|
||||
new CleanWebpackPlugin({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user