three.cad/webpack.dev.js

16 lines
318 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-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,
},
})