35 lines
690 B
JavaScript
35 lines
690 B
JavaScript
'use strict'
|
|
|
|
const { merge } = require('webpack-merge')
|
|
|
|
const baseWebpackConfig = require('./base')
|
|
const cssWebpackConfig = require('./css')
|
|
const config = require('../project.config')
|
|
|
|
module.exports = merge(baseWebpackConfig, cssWebpackConfig, {
|
|
mode: 'development',
|
|
|
|
devtool: 'eval-cheap-module-source-map',
|
|
|
|
devServer: {
|
|
historyApiFallback: {
|
|
rewrites: [{ from: /./, to: '/index.html' }],
|
|
},
|
|
dev: {
|
|
publicPath: config.dev.publicPath,
|
|
},
|
|
overlay: {
|
|
warnings: true,
|
|
errors: true,
|
|
},
|
|
open: false,
|
|
host: '0.0.0.0',
|
|
port: config.dev.port,
|
|
liveReload: false,
|
|
},
|
|
|
|
infrastructureLogging: {
|
|
level: 'warn',
|
|
},
|
|
})
|