mirror of
https://github.com/PrismarineJS/prismarine-web-client.git
synced 2025-08-28 21:28:44 -04:00
37 lines
851 B
JavaScript
37 lines
851 B
JavaScript
const { merge } = require('webpack-merge')
|
|
const common = require('./webpack.common.js')
|
|
const path = require('path')
|
|
|
|
/** @type {import('webpack-dev-server').Configuration['rel']} */
|
|
module.exports = merge(common,
|
|
/** @type {import('webpack').Configuration} */
|
|
{
|
|
mode: 'development',
|
|
devtool: 'inline-source-map',
|
|
cache: true,
|
|
devServer: {
|
|
// contentBase: path.resolve(__dirname, './public'),
|
|
compress: true,
|
|
// inline: true,
|
|
// open: true,
|
|
hot: true,
|
|
// liveReload: true,
|
|
devMiddleware: {
|
|
writeToDisk: true,
|
|
},
|
|
},
|
|
optimization: {
|
|
splitChunks: {
|
|
maxAsyncRequests: 10,
|
|
maxInitialRequests: 10,
|
|
cacheGroups: {
|
|
vendors: {
|
|
test: /[\\/]node_modules[\\/]/,
|
|
name: "vendors",
|
|
priority: 10,
|
|
chunks: 'all'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|