-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathwebpack.development.config.js
executable file
·60 lines (58 loc) · 1.51 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* This file is part of con4gis, the gis-kit for Contao CMS.
* @package con4gis
* @version 9
* @author con4gis contributors (see "authors.txt")
* @license LGPL-3.0-or-later
* @copyright (c) 2010-2024, by Küstenschmiede GmbH Software & Design
* @link https://www.con4gis.org
*/
const webpack = require("webpack");
var path = require('path');
var config = {
entry: {
'c4g-maps': './src/Resources/public/js/c4g-maps-main.js',
'c4g-backend-helper': './src/Resources/public/js/c4g-backend-helper.js',
'c4g-backend-editor': './src/Resources/public/js/c4g-backend-editor.js',
'c4g-search': './src/Resources/public/js/c4g-search.js'
},
mode: "development",
output: {
filename: '[name].js',
path: path.resolve('./src/Resources/public/build/'),
chunkFilename: '[name].bundle.js',
publicPath: "bundles/con4gismaps/build/"
},
devtool: "inline-source-map",
resolve: {
modules: [
'node_modules',
'src/Resources/public/js',
],
extensions: ['.jsx', '.js', '.ts'],
fallback: {
"http": false,
"https": false,
"buffer": false,
"url": false,
"fs": false
}
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules(?!\/ol)/,
use: [{
loader: "babel-loader",
}],
include: [
path.resolve('.'),
path.resolve('./src/Resources/public/js/'),
path.resolve('./src/Resources/public/js/components')
],
}
]
}
};
module.exports = config;