-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwebpack.config.js
More file actions
executable file
·45 lines (44 loc) · 1010 Bytes
/
Copy pathwebpack.config.js
File metadata and controls
executable file
·45 lines (44 loc) · 1010 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
const path = require('path');
const { VueLoaderPlugin } = require('vue-loader');
module.exports = {
entry: {
main: './src/main.js',
admin: './src/admin.js',
personal: './src/personal.js'
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'js'),
clean: true
},
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader'
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
}
]
},
plugins: [
new VueLoaderPlugin()
],
resolve: {
extensions: ['.js', '.vue'],
alias: {
'@': path.resolve(__dirname, 'src')
},
fallback: {
'path': false,
// @nextcloud/dialogs 7.4+ pulls in sax/@file-type/xml for SVG detection,
// which reference Node core modules. IntroVox only uses dialog toasts, so
// that code path is never reached — stub the Node built-ins out.
'stream': false,
'string_decoder': false
}
},
mode: 'production'
};