mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2026-01-30 09:48:12 +01:00
fix(29): source mapping issue
This commit is contained in:
parent
9a8f575867
commit
dcfa24d37c
@ -41,6 +41,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: {
|
||||||
@ -122,7 +124,11 @@ module.exports = {
|
|||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.ProgressPlugin(),
|
new webpack.ProgressPlugin(),
|
||||||
|
// Generate manifest.json
|
||||||
new WextManifestWebpackPlugin(),
|
new WextManifestWebpackPlugin(),
|
||||||
|
// Generate sourcemaps
|
||||||
|
new webpack.SourceMapDevToolPlugin({filename: false}),
|
||||||
|
// Remove style entries js bundle
|
||||||
new FixStyleOnlyEntriesPlugin({silent: true}),
|
new FixStyleOnlyEntriesPlugin({silent: true}),
|
||||||
new webpack.EnvironmentPlugin(['NODE_ENV', 'TARGET_BROWSER']),
|
new webpack.EnvironmentPlugin(['NODE_ENV', 'TARGET_BROWSER']),
|
||||||
new CleanWebpackPlugin({
|
new CleanWebpackPlugin({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user