forked from Kuestenschmiede/CoreBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.development.config.js
43 lines (41 loc) · 985 Bytes
/
webpack.development.config.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
42
43
/*
* This file is part of con4gis, the gis-kit for Contao CMS.
* @package con4gis
* @version 8
* @author con4gis contributors (see "authors.txt")
* @license LGPL-3.0-or-later
* @copyright (c) 2010-2022, by Küstenschmiede GmbH Software & Design
* @link https://www.con4gis.org
*/
var path = require('path');
var config = {
entry: {
'AlertHandler': './src/Resources/public/vendor/js/AlertHandler.js'
},
mode: "development",
output: {
filename: '[name].js',
path: path.resolve('./src/Resources/public/dist/js/'),
chunkFilename: '[name].bundle.js',
publicPath: "bundles/con4giscore/dist/js"
},
devtool: "inline-source-map",
resolve: {
modules: [
'node_modules',
'src/Resources/public/vendor/js'
],
extensions: ['.js']
},
module: {
rules: [
{
include: [
path.resolve('.'),
path.resolve('./src/Resources/public/vendor/js/')
],
}
]
}
};
module.exports = config;