fix: use package.json version for manifest generation

This commit is contained in:
abhijithvijayan 2020-04-06 10:16:52 +05:30
parent 5067355d90
commit c8120a9487
3 changed files with 12 additions and 7 deletions

View File

@ -66,7 +66,7 @@
"webpack-cli": "^3.3.11", "webpack-cli": "^3.3.11",
"webpack-extension-reloader": "^1.1.4", "webpack-extension-reloader": "^1.1.4",
"webpack-fix-style-only-entries": "^0.4.0", "webpack-fix-style-only-entries": "^0.4.0",
"wext-manifest-loader": "^1.0.1", "wext-manifest-loader": "^1.1.2",
"wext-manifest-webpack-plugin": "^1.0.3", "wext-manifest-webpack-plugin": "^1.0.3",
"zip-webpack-plugin": "^3.0.0" "zip-webpack-plugin": "^3.0.0"
} }

View File

@ -62,8 +62,12 @@ module.exports = {
{ {
type: 'javascript/auto', // prevent webpack handling json with its own loaders, type: 'javascript/auto', // prevent webpack handling json with its own loaders,
test: /manifest\.json$/, test: /manifest\.json$/,
use: 'wext-manifest-loader', use: {
exclude: /node_modules/, loader: 'wext-manifest-loader',
options: {
usePackageJSONVersion: true, // set to false to not use package.json version for manifest
},
},
}, },
{ {
test: /.(js|jsx)$/, test: /.(js|jsx)$/,

View File

@ -8091,12 +8091,13 @@ webpack@^4.42.1:
watchpack "^1.6.0" watchpack "^1.6.0"
webpack-sources "^1.4.1" webpack-sources "^1.4.1"
wext-manifest-loader@^1.0.1: wext-manifest-loader@^1.1.2:
version "1.0.1" version "1.1.2"
resolved "https://registry.yarnpkg.com/wext-manifest-loader/-/wext-manifest-loader-1.0.1.tgz#8b8c5fbbd1f78deda2286e7d23c4e3c8920a03b7" resolved "https://registry.yarnpkg.com/wext-manifest-loader/-/wext-manifest-loader-1.1.2.tgz#a8c9c905fea0e0f611f5afd7b720c9ca4e8f7346"
integrity sha512-MSjoe2xhAu2C/3hhOD+/oDR8o0tzqsKQBREgfcE0NBMAAU0BumXCxNTeC0AxoFL8VtV+hjY4+Ljm+gcAIaJ0iw== integrity sha512-H8j2iMKGmeqBvGCYnWb6KFamG/jRtElIGiJJp7bgue/mKGlmR4LqzbXKBHBkaSyZRf1CqzykVt2BVEGvFbc2TQ==
dependencies: dependencies:
loader-utils "^2.0.0" loader-utils "^2.0.0"
schema-utils "^2.6.5"
wext-manifest-webpack-plugin@^1.0.3: wext-manifest-webpack-plugin@^1.0.3:
version "1.0.3" version "1.0.3"