three.cad/webpack.dev.js

23 lines
538 B
JavaScript
Raw Normal View History

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: {
key: fs.readFileSync('./localhost-key.pem'),
cert: fs.readFileSync('./localhost.pem'),
ca: fs.readFileSync('/home/howard/.local/share/mkcert/rootCA.pem'),
},
2021-03-26 19:18:11 +00:00
},
2021-04-18 19:14:01 +00:00
2021-03-26 19:18:11 +00:00
})