forked from AJenbo/agcms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
27 lines (26 loc) · 1010 Bytes
/
webpack.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
var webpack = require('webpack');
module.exports = {
entry: {
"admin": "./source/javascript/admin/index.js",
"adminExplorer": "./source/javascript/admin/explorer.js",
"adminUpload": "./source/javascript/admin/upload.js",
"adminImageEdit": "./source/javascript/admin/image-edit.js",
"adminAddList": "./source/javascript/admin/addList.js",
"site": "./source/javascript/site.js",
"arms-gallery.dk": "./source/javascript/arms-gallery.dk.js",
"huntershouse.dk": "./source/javascript/huntershouse.dk.js"
},
output: {filename: "[name].js", path: __dirname + "/application/javascript"},
devtool: false,
plugins: [new webpack.SourceMapDevToolPlugin({
filename: 'sourcemaps/[file].map',
fileContext: 'public'
})],
module: {
rules: [{
test: /\.js$/,
exclude: /node_modules/,
use: {loader: "babel-loader", options: {"presets": ["@babel/preset-env"]}}
}]
}
};