forked from nextcloud/cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
30 lines (27 loc) · 926 Bytes
/
Copy pathwebpack.config.js
File metadata and controls
30 lines (27 loc) · 926 Bytes
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
/**
* Nextcloud Cookbook app
* Main Webpack configuration file.
* Different configurations for development and build runs
* are located in the appropriate files.
*/
const path = require('path')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const webpack = require('webpack')
const webpackConfig = require('@nextcloud/webpack-vue-config')
const { merge } = require('webpack-merge')
const { env } = require('process')
module.exports = (env) => { return merge(webpackConfig, {
entry: {
guest: path.resolve(path.join('src', 'guest.js')),
},
// You can add this to allow acces in the network. You will have to adopt the public path in main.js as well!
// devServer: {
// host: "0.0.0.0",
// },
plugins: [
new CleanWebpackPlugin(),
new webpack.DefinePlugin({
'__webpack_use_dev_server__': env.dev_server || false,
}),
],
}) }