2021-03-20 19:08:15 +00:00
|
|
|
const { merge } = require('webpack-merge');
|
|
|
|
|
|
|
|
const common = require('./webpack.common.js');
|
2021-03-26 19:18:11 +00:00
|
|
|
const path = require('path');
|
2021-04-18 19:14:01 +00:00
|
|
|
const fs = require('fs');
|
2021-03-20 19:08:15 +00:00
|
|
|
|
|
|
|
module.exports = merge(common, {
|
|
|
|
mode: 'development',
|
2021-03-24 20:47:12 +00:00
|
|
|
devtool: 'inline-source-map',
|
2021-03-26 19:18:11 +00:00
|
|
|
devServer: {
|
|
|
|
contentBase: path.join(__dirname, 'dist'),
|
|
|
|
compress: true,
|
|
|
|
port: 9000,
|
2021-04-18 19:14:01 +00:00
|
|
|
https: {
|
2021-04-20 01:31:32 +00:00
|
|
|
key: fs.readFileSync('./https/localhost-key.pem'),
|
|
|
|
cert: fs.readFileSync('./https/localhost.pem'),
|
|
|
|
ca: fs.readFileSync('./https/rootCA.pem'),
|
2021-04-18 19:14:01 +00:00
|
|
|
},
|
2021-03-26 19:18:11 +00:00
|
|
|
},
|
2021-04-18 19:14:01 +00:00
|
|
|
|
2021-03-26 19:18:11 +00:00
|
|
|
})
|