forked from owncloud/web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.dev.js
37 lines (36 loc) · 941 Bytes
/
webpack.dev.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
const path = require('path')
const merge = require('webpack-merge')
const common = require('./webpack.common.js')
module.exports = merge(common, {
mode: 'development',
devtool: 'source-map',
resolve: {
alias: {
vue: 'vue/dist/vue.js'
},
symlinks: false
},
devServer: {
contentBase: path.resolve(__dirname),
historyApiFallback: true,
publicPath: '/',
filename: 'dist/core/core.bundle.js',
watchContentBase: true,
https: false,
compress: true,
host: '0.0.0.0',
port: 8300,
disableHostCheck: true,
watchOptions: {
ignored: [
path.resolve(__dirname, '.*'),
path.resolve(__dirname, 'tests'),
path.resolve(__dirname, 'build'),
path.resolve(__dirname, 'changelog'),
path.resolve(__dirname, 'dist'),
path.resolve(__dirname, 'node_modules'),
path.resolve(__dirname, 'apps') + '/*/node_modules'
]
}
}
})