-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.development.js
More file actions
45 lines (41 loc) · 1.42 KB
/
webpack.development.js
File metadata and controls
45 lines (41 loc) · 1.42 KB
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
42
43
44
45
const pkg = require('./package.json');
const manifest = require('./src/manifest.json');
const commonWebpackConfiguration = require('./webpack.common');
const path = require( 'path');
const merge = require('webpack-merge');
const ExtensionReloader = require('webpack-extension-reloader');
const MiniCssExtractPlugin = require( 'mini-css-extract-plugin');
const WebpackExtensionManifestPlugin = require('webpack-extension-manifest-plugin');
module.exports = merge(commonWebpackConfiguration, {
mode: 'development',
devtool: 'inline-source-map',
watch: true,
module: {
rules: [
{
test: /\.scss$/,
include: [path.resolve(__dirname, 'src')],
use: [MiniCssExtractPlugin.loader, 'fast-css-loader', 'fast-sass-loader'],
},
]
},
plugins: [
new WebpackExtensionManifestPlugin({
config: {
base: manifest,
extend: {
name: 'LiTags - 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
}
})
]
});