23 lines
723 B
JavaScript
23 lines
723 B
JavaScript
// path is used to resolve properly across the OS
|
|
const path = require('path');
|
|
const { merge } = require('webpack-merge');
|
|
const common = require('./webpack.common.config');
|
|
// merge() calls in the environment-specific configuration to include commons
|
|
module.exports = merge(common, {
|
|
// set development mode
|
|
mode: 'development',
|
|
// enable strong source mapping
|
|
devtool: 'inline-source-map',
|
|
devServer: {
|
|
static: path.resolve(__dirname, '../dist'),
|
|
/*
|
|
When using the HTML5 History API,
|
|
the index.html page will likely have to be served in place of any 404 responses.
|
|
Enable devServer.historyApiFallback by setting it to true.
|
|
*/
|
|
historyApiFallback: true,
|
|
port: 8080,
|
|
open: true,
|
|
},
|
|
});
|