mirror of
https://github.com/PrismarineJS/prismarine-web-client.git
synced 2024-11-25 00:57:53 -05:00
c8e3ffd019
* introduce prod/dev build https://webpack.js.org/guides/production/ * use it properly with express https://webpack.js.org/guides/development/#using-webpack-dev-middleware to provide a fast npm start (5 second)
19 lines
426 B
JavaScript
19 lines
426 B
JavaScript
const { merge } = require('webpack-merge')
|
|
const common = require('./webpack.common.js')
|
|
const path = require('path')
|
|
|
|
module.exports = merge(common, {
|
|
mode: 'development',
|
|
devtool: 'inline-source-map',
|
|
cache: true,
|
|
devServer: {
|
|
contentBase: path.resolve(__dirname, './public'),
|
|
compress: true,
|
|
inline: true,
|
|
// open: true,
|
|
hot: true,
|
|
watchOptions: {
|
|
ignored: /node_modules/
|
|
}
|
|
}
|
|
})
|