Update dependencies and improve build system
This commit is contained in:
34
service/config/dev.js
Normal file
34
service/config/dev.js
Normal file
@@ -0,0 +1,34 @@
|
||||
'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',
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user