-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.config.js
32 lines (30 loc) · 830 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
28
29
30
31
32
const { merge } = require('webpack-merge')
const path = require('path');
const nextcloudWebpackConfig = require('@nextcloud/webpack-vue-config')
module.exports = merge(nextcloudWebpackConfig, {
optimization: process.env.NODE_ENV === 'production'
? { chunkIds: 'deterministic' }
: {},
devServer: {
port: 3000, // use any port suitable for your configuration
host: '0.0.0.0', // to accept connections from outside container
},
module: {
rules: [
{
resourceQuery: /raw/,
type: 'asset/source',
},
],
},
resolve: {
alias: {
apps: path.resolve(__dirname, '../../apps'),
variables: path.resolve(__dirname, '../../core/css/variables.scss'),
functions: path.resolve(__dirname, '../../core/css/functions.scss')
},
fallback: {
apps: path.resolve(__dirname, '../../apps-extra'),
},
}
})