-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebpack.development.js
41 lines (39 loc) · 1.13 KB
/
webpack.development.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const pkg = require("./package.json");
const { merge } = require("webpack-merge");
const manifest = require("./src/manifest.json");
const commonWebpackConfiguration = require("./webpack.common");
const ExtensionReloader = require("webpack-ext-reloader");
const WebpackExtensionManifestPlugin = require("webpack-extension-manifest-plugin");
module.exports = merge(commonWebpackConfiguration, {
mode: "development",
devtool: "inline-source-map",
watch: true,
module: {
rules: [
{
test: /\.svg$/,
type: "asset/inline",
},
]
},
plugins: [
new WebpackExtensionManifestPlugin({
config: {
base: manifest,
extend: {
name: "LiNotify - Dev Build",
version: pkg.version,
homepage_url: pkg.homepage,
},
},
}),
new ExtensionReloader({
reloadPage: false, // Force the reload of the page also
entries: {
// The entries used for the content/background scripts
contentScript: "content", // Use the entry names, not the file name or the path
background: "background", // *REQUIRED
},
}),
],
});