three.cad/webpack.dev.js

21 lines
523 B
JavaScript
Raw Permalink Normal View History

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